Id field being named id despite the @column tag

2012-04-02 Thread Santiago GarcĂ­a Pimentel R . G .
Hello, I am using openjpa 2.2.0 I have an entity with a string primary key called name. @Entity @Table(name = Domain) public class Domain implements java.io.Serializable, ComparableDomain { @Id @Column(name = name) public final String getName() { return

Re: Id field being named id despite the @column tag

2012-04-02 Thread Rick Curtis
Santiago -- shouldnt the sql be SELECT t0.name, bla bla bla FROM Domain t0 ?? As it has been answered numerous times before, you can't have a final method. Please, remove final. I believe the reason that OpenJPA is trying to query t0.id is that we're using a Datastore identity[1] because as far