openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From letme <...@bgu.ac.il>
Subject Embedded MappedSuperClass
Date Sun, 28 Jun 2009 12:19:27 GMT

hi,

I have a problem embedding a MappedSuperClass in another MappedSuperClass.
I want my entity to have it's super class member (which is abstract).
I get some null pointer exception in 

org.apache.openjpa.kernel.BrokerImpl.embed(BrokerImpl.java:2681)

I have openjpa-1.2.1
I was wondering how can I achieve this structure:


@MappedSuperClass
abstract BaseClass1 {
  @Embeded
  BaseClass2 member;
}

@MappedSuperClass
abstract BaseClass2{
  @Base
  Something
}


@Entity
Class1 extends BaseClass1

@Embedable
Class2 extends BaseClass2



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


Mime
View raw message