one can give the DB table name using @Entity (name="") or @Table (name="")
not sure whats the difference between two ??
Post by:Jeanne Boyarsky
While @Entity takes an optional name, it isn't a table name. It is for the case where you want to refer to the entity using a different name in JP QL queries. @Table's name attribute is the actual table name.
@Table's name is used a lot. @Entitiy's name is much rarer. It is useful if you have two @Entity classes' with the same name and you need a way to differentiate them when running queries.
Post by:lavnish lalchandani
, Ranch Hand
got it , thanks
This thread has been viewed 3451 times.
All times above are in ranch (not your local) time.
The current ranch time is Sep 23, 2018 13:36:43.