Re: Can't obtain Primary Key value by JPQL

2010-11-08 Thread Rick Curtis
,Huang - Original Message - From: Rick Curtis curti...@gmail.com To: users@openjpa.apache.org Sent: Saturday, November 06, 2010 2:43 AM Subject: Re: Can't obtain Primary Key value by JPQL Can you point me to how you were enhancing your Entities... I'd like to get to the bottom

Re: Can't obtain Primary Key value by JPQL

2010-11-08 Thread Alex, Huang
It's my pleasure. Thanks Alex,Huang - Original Message - From: Rick Curtis curti...@gmail.com To: users@openjpa.apache.org Sent: Monday, November 08, 2010 10:17 PM Subject: Re: Can't obtain Primary Key value by JPQL Hopefully I'll find some time this afternoon to get that setup

Re: Can't obtain Primary Key value by JPQL

2010-11-08 Thread Rick Curtis
pleasure. Thanks Alex,Huang - Original Message - From: Rick Curtis curti...@gmail.com To: users@openjpa.apache.org Sent: Monday, November 08, 2010 10:17 PM Subject: Re: Can't obtain Primary Key value by JPQL Hopefully I'll find some time this afternoon to get that setup

Re: Can't obtain Primary Key value by JPQL

2010-11-07 Thread Alex, Huang
the tool for enhancement. Best regards, Alex,Huang - Original Message - From: Rick Curtis curti...@gmail.com To: users@openjpa.apache.org Sent: Saturday, November 06, 2010 2:43 AM Subject: Re: Can't obtain Primary Key value by JPQL Can you point me to how you were enhancing your

Re: Can't obtain Primary Key value by JPQL

2010-11-05 Thread Rick Curtis
, November 04, 2010 5:29 AM Subject: Re: Can't obtain Primary Key value by JPQL That looks about identical to the test case that I came up with. Any advice? I'm running low on ideas here... How did you get the data into your DB? What happens if you call em.find(TUser.class

Can't obtain Primary Key value by JPQL

2010-11-03 Thread Alex, Huang
Hi everybody, I am using openJPA2.0.1 + Mysql5.1. Table definition like below, ===DML START=== CREATE TABLE t_user ( uid int(10) unsigned NOT NULL AUTO_INCREMENT, name varchar(255) DEFAULT NULL, age int(11) NOT NULL, PRIMARY KEY (uid) ) ENGINE=InnoDB

Re: Can't obtain Primary Key value by JPQL

2010-11-03 Thread Rick Curtis
Can you post the SQL trace from when you execute your query? Thanks, Rick On Wed, Nov 3, 2010 at 3:51 AM, Alex, Huang primemo...@gmail.com wrote: Hi everybody, I am using openJPA2.0.1 + Mysql5.1. Table definition like below, ===DML START=== CREATE TABLE

Re: Can't obtain Primary Key value by JPQL

2010-11-03 Thread Alex, Huang
obtain Primary Key value by JPQL Honesty, I don't have a clue why this isn't working for you. I have unsuccessfully tried to recreate this problem on both 2.0.x and trunk. Is it possible that you could write a small unit test to recreate the problem? Thanks, Rick

Re: Can't obtain Primary Key value by JPQL

2010-11-03 Thread Alex, Huang
to be different; were the same instance. Any advice? Alex,Huang - Original Message - From: Rick Curtis curti...@gmail.com To: users@openjpa.apache.org Sent: Thursday, November 04, 2010 2:30 AM Subject: Re: Can't obtain Primary Key value by JPQL Honesty, I don't have a clue why