Re: org.apache.openjpa.util.LongId cannot be cast to MyDomainObject

2011-12-27 Thread Marc Logemann
[mailto:l...@logemann.org] Gesendet: Donnerstag, 22. Dezember 2011 17:55 An: users@openjpa.apache.org Betreff: Re: org.apache.openjpa.util.LongId cannot be cast to MyDomainObject Hi, The customer has the same database, the same application (same build and stuff like that) and same everything

AW: org.apache.openjpa.util.LongId cannot be cast to MyDomainObject

2011-12-23 Thread Boblitz John
@openjpa.apache.org Betreff: Re: org.apache.openjpa.util.LongId cannot be cast to MyDomainObject Hi, The customer has the same database, the same application (same build and stuff like that) and same everything. This is what freaks me out ;-) Of course something must be different... I

org.apache.openjpa.util.LongId cannot be cast to MyDomainObject

2011-12-22 Thread Marc Logemann
Hi, me again. This time with something i also dont get. OrderPosition.class --- @XmlTransient @ManyToOne @JoinColumn(name = con_ship_id, referencedColumnName = id) ContainerShipment containerShipment; ContainerShipment.class

Re: org.apache.openjpa.util.LongId cannot be cast to MyDomainObject

2011-12-22 Thread Kevin Sutter
Hi Marc, I'm not seeing anything wrong with your object model definition. But, it definitely looks like OpenJPA is getting confused on this join column reference (string id) and the type of the primary key (long). Have you been able to verify that the database schemas are consistent with the

Re: org.apache.openjpa.util.LongId cannot be cast to MyDomainObject

2011-12-22 Thread Marc Logemann
Hi, The customer has the same database, the same application (same build and stuff like that) and same everything. This is what freaks me out ;-) Of course something must be different... I compared the schema several times and they are the same. Turning on Trace is quite impossible on a