I want to use Hibernate Versioning in my application but I have a problem in a class hierarchy like this : C extends B and B extends A. I want to use version in Class B and I don’t need to use version in class A and I know when I use versioning in Class B automatically it will be effective in Class C. I implement inheritance in hibernate with 'joined-subclass' and ‘Version’ tag is not defined for 'joined-subclass'. How can I use versioning in my class hierarchy?
Add a comment |
1 Answer 1
You can't do this with joined-subclass, because, as you have already observed, it will apply to any further subclasses.
You'll probably have to use table-per-subclass to get what you want.
answered Nov 7, 2011 at 2:43
GreyBeardedGeek
30.3k22 gold badges5151 silver badges7171 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
Explore related questions
See similar questions with these tags.
- The Overflow Blog
-
- Featured on Meta
-
-
Related
Hot Network Questions
- Why did Father Paul wear the wrong vestments in Midnight Mass?
- Can missed approach procedures be used for a PT?
- Will this this schematic modification work?
- Name a book of short stories all based on a single extraterrestrial world which was destroyed in the end
- Urgent clarification on transit and Schengen visa requirement at Milan Malpensa Airport (MXP)
- Printing Service is not available after software update on 24.04
- Best way to splice an old 8/2 cable with no ground?
- Story about an elderly couple building a robot, in a world where robots are semi banned, maybe not, and the couple are robot makers
- Would the word "dog" mean anything if, at some time, it was not being read or thought of?
- Creating a spiral
- Why is the verb "to sic" conjugated with a double c rather than the more typical ck?
- Status of the tabularray package?
- How can I deserialize the account in the Rust fronted?
- Full-bridge rectifier causes strange slow oscillation of the DC voltage envelope
- The Airbus A320 that pitched down due to solar radiation recently. Why did that happen? I thought the computers vote the corrupted one out and ignore?
- When is DME not required for a VOR approach?
- Find the nearest school to you
- Fool a program it has a pty of specific size
- How is this ratio formula for two conducting balls true?
- How to check for IPv6 colisions in Linux
- MinMaxStack - tracks minimum and maximum values
- What damages are recoverable for late delivery of a package?
- in others' eyes
- Direct object(s)? of "excutit" in Aeneid 12.470
lang-java