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

JPA does not have support for mapping interfaces, but EclipseLink does have support for interface descriptor and variable 1-1 mappings.

You can define a OneToOne relationship to an interface using the
@VariableOneToOne EclipseLink annotation.

There is currently no annotation for interface descriptors, but you can define them using a SessionCustomizer and create a RelationalDescriptor of interface type (setJavaInterface()).

You could also make it an abstract class, or define an abstract class in addition to the interface.

---
James
http://www.nabble.com/EclipseLink---Users-f26658.html