aspose file tools*
The moose likes Object Relational Mapping and the fly likes having trouble writing a select statement openJpa Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "having trouble writing a select statement openJpa" Watch "having trouble writing a select statement openJpa" New topic
Author

having trouble writing a select statement openJpa

Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1107

my bean looks like this


the database


the select code


the error message



why is it only this column that isn't working? why is group name perfectly happy
Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1107

ok i fixed it by swapping the getter and setter methods around, so the annotation was above the 1st method the getExternalId and it now works.
Is this because this is a secret restriction?
Is it because it expects them to be the same way round every time?
 
jQuery in Action, 2nd edition
 
subject: having trouble writing a select statement openJpa