-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Unable to use postgresql keywords. Bug or by design?
PostPosted: Tue Jan 25, 2011 8:45 am 
Newbie

Joined: Fri Dec 03, 2010 11:42 am
Posts: 3
Hi,

When using JPA I am having problems when calling entities "User" and other things that are reserved keywords in postgresql. I can fix this for that entity with:
@Table(name = "`user`")

BUT then I need to escape column names for all referencing entities, and finally it gets simply impossible when I need to reference the User entity in collection of embeddables.
To me it seems like the postgresql dialect should take care of escaping all reserved keywords? Is this a known issue, something worth mentioning in JIRA or something done by design?

Thanks,
Piotr


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.