Wednesday, 20 April 2016
Can you have 2 persistent classes by same name, but in different packages ?
Yes !
By
disabling auto import
of names of persistent classes and
explicitly naming entities
by rename attribute.
Example
<hibernate-mapping>
<import
class
="
com.genius.MyTestEO
"
rename
="
TestEO
"
/>
</hibernate-mapping>
No comments:
Post a Comment
Note: only a member of this blog may post a comment.
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.