|interfaces [message #390038]
||Thu, 09 July 2009 16:47
| Andreas Leue
Registered: July 2009
JPA standard says
"An enum or interface should not be designated as an entity"
I googled a bit around and it seems
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,
Powered by FUDForum
. Page generated in 0.05697 seconds