interfaces [message #390038] |
Thu, 09 July 2009 16:47  |
Eclipse User |
|
|
|
Hi,
JPA standard says
"An enum or interface should not be designated as an entity"
I googled a bit around and it seems
http://stackoverflow.com/questions/281503/jpa-mapping-interf aces
it might work somewhere else.
Anyway - how do you do it?
Assuming I have interface Person and implementing classes
Programmer and Manager. Somewhere else, I have an attribute
List<Person>, or a plain attribute Person.
I've read the suggestion to make the interface an abstract class.
Is that the only workaround?
What do you do in case of multiple interfaces? Are you lost then?
Thanks for help,
Andreas
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08402 seconds