java - Mapping an Interface As A Primary Key Via Hibernate -
i have class it's own @embeddable id class, let's call icompanyid. there 2+ classes implement icompanyid. classes implement icompanyid embedded id's classes implement icompany (which there 2+ implementing classes).
so, this:
@embeddedid public icompanyid getid() { /* blah blah */ }
how tell hibernate implementing class use? @manytoone or @onetomany, have specify value in targetentity, @embeddedid offers no such options. can help?
jason
have tried @target(companyidimpl.class)
(see: @target)? keep in mind hibernate-specific solution.
Comments
Post a Comment