java - References to MappedBySuperclass-classes -
I have the following problem I have an abstract class named Vehicle, annotated this class with the mapped speaker class has gone. Then I have a lot of classes that extend intangible class, such as car, boat, bicycle, motorcycle etc. I also have a person called a person with a group of vehicles, I would like to see the relationship that looks like this
@inity class person {@OneToMany List & lt; Vehicle & gt; Vehicles; & Nbsp; ...}
The problem is that the vehicle is an abstract class and one unit square is not straight. Is there any way in J.P.A., can I use this kind of reference directly in terms of unit category?
It should work here in this way where the author did such a thing and said, this is very good Worked the way. Hope it helps!
Comments
Post a Comment