Hi all
I am new to OpenJPA, but I have used Hibernate and Toplink before.
I use OpenJPA Version "BEA Kodo 4.2.0load03" delivered with the BEA Application
Server 10.3
I have the following question:
I have an Entity which is called "User". Since "User" is keyword in the
database I want to use,
I had to give the Entity another name, "AmsUser".
@Entity(name = "AmsUser")
public class User implements Serializable {
...
Now when I want to make a query on this entity, I have to take the "AmsUser" as
name.
select u from AmsUser u where u.accountNumber = :pnumber
In TopLink, the query would be
select u from User u where u.accountNumber = :pnumber
since the Java-Name is relevant, not the Entity-Name provided by the annotation.
Is this a bug or a feature? And what about columns? Reference by java-name or
provided name?
Thanks for an answer.
Regards
Michael
____________________________________________________________
Michael Szalay Senior Software Engineer
[EMAIL PROTECTED] +41 31 311 32 22
basis06 AG - Birkenweg 61 - CH-3013 Bern
http://www.basis06.com - source of smart business