openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Melching <jme...@us.ibm.com>
Subject Help selecting version column
Date Thu, 24 Jan 2008 15:38:25 GMT
I am trying to select only the version column of an entity to see if it 
was changed. 

If I run the following JPQL where verId is the version field of my entity:

select a.verId from AnEntity a where a.id = ?1;

The generated sql is: 

SELECT  FROM AN_ENTITY t0 WHERE t0.ID = ? 

Obviously, this is invalid sql syntax as the columns to select are 
missing.  I am using a DB2 dictionary.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message