Re: same @Id on mapped superclass

2009-04-02 Thread Rick Curtis
I'm unable to recreate your failure, can you try a newer view of OpenJPA? ...I tested with 1.2 and 2.0. -Rick -- View this message in context: http://n2.nabble.com/same-%40Id-on-mapped-superclass-tp2435374p2576289.html Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: same @Id on mapped superclass

2009-04-02 Thread Kaayan
Thanks for your reply. The DB is MySQL 5.1 win32 and AppServer is "Tomcat integrated OpenEJB 3.1" (equipped openjpa-1.1.0.jar). And this is my scenario... I have an abstract class MasterObjectBase as @MappedSuperclass @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS) public abstract class

Re: same @Id on mapped superclass

2009-04-02 Thread Rick Curtis
Kaayan - We're going to need a more detailed description of your scenario to figure out whats going on. -Rick Hello, I have a similar problem here. My DB is MySQL, and was running JBoss(which uses Hibernate as Persistence Provider), and with some data in DB. Now I have switched to 'tomcat w

Re: same @Id on mapped superclass

2009-04-02 Thread Kaayan
Hello, I have a similar problem here. My DB is MySQL, and was running JBoss(which uses Hibernate as Persistence Provider), and with some data in DB. Now I have switched to 'tomcat with openejb 3.1 integration', persistence provider is openjpa. Following the instructions, I have marked the sup

Re: same @Id on mapped superclass

2009-03-08 Thread Pinaki Poddar
Hi, You should define a Inheritance strategy. If you are using SINGLE_TABLE strategy then you should also define a Discrimnator value for each subclass. Marc Logemann wrote: > > Hi, > > following domain model: > > @MappedSuperclass > public class BasicMetaData { > > @Id > @Colu

same @Id on mapped superclass

2009-03-06 Thread Marc Logemann
Hi, following domain model: @MappedSuperclass public class BasicMetaData { @Id @Column(name = "oid") private long oid; ... } @Entity @VersionColumn(name = "jdoversion") @Table(name = "foo1") public class MetaData1 extends BasicMetaData { } @Entity @VersionColumn(name = "jdoversio