Hi,
>  We put the annotations only on Interfaces. (See examples below).
> Therefore we only inserted Interfaces > into persistence.xml.
  1. As you require to invoke non-bean methods (e.g. fetchDomainData()) of
your implementation class, then you need to annotate them as @Entity. 
  2. You need to specify these implementation classes in persistence.xml
<class> clause
  3. You need to instantiate these classes directly rather than calling
OpenJPAEntityManager.newInstance(InterfaceX.class), because otherwise
OpenJPA will not know that actually you want an instance of your
implementation class InterfaceXImpl and *not* a dynamically generated class
that implements InterfaceX.

> When inserting interface and implementing class into persistenc.xml, for
> example ParameterDatumAtomar 
> and .ParameterDatumAtomarImpl we receive following Exception. 
This exception is raised because ParameterDatumAtomarImpl  is not annotated
as @Entity.

-- 
View this message in context: 
http://n2.nabble.com/ManagedInterfaces-tp2438473p2462075.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to