Re: OpenJPA usage at Apache James

2010-06-24 Thread Eric Charles
Hi Pinaki, OpenJPA 2.1.0-SNAPSHOT didn't help. I also made a separate sample with a Message, AbstractMessage and Header (a message has many headers). I defined: - @OneToMany(mappedBy...) with type Header on the AbstractMessage - @ManyToOne with type AbstractMessage on the Header. With that conf

Re: OpenJPA usage at Apache James

2010-06-23 Thread Eric Charles
Hi Pinaki, We use the maven downloaded jar release 422266:935683 from 22-Apr-2010, so we don't have the patch for the MappedSuperClass. I didn't find a recent 2.0.0-SNAPSHOT on http://people.apache.org/maven-snapshot-repository/ nor on https://repository.apache.org/index.html. Will try with

OpenJPA usage at Apache James

2010-06-21 Thread Eric Charles
Hi, Apache James project uses OpenJPA 2.0. We've got @OneToMany relations on AbstractJPAMessage [1] to JPAHeader [2] (headers attribute) and JPAProperty [3] (properties attribute). With current config, intermediary tables are created (MESSAGE_HEADER and MESSAGE_PROPERTY) but we would like to g