|
Re: interfaces [message #390050 is a reply to message #390038] |
Mon, 13 July 2009 14:16 |
|
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
James : Wiki : Book : Blog : Twitter
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03393 seconds