[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.rt.eclipselink] interfaces

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-interfaces
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