Rick,

I am using OpenJPA v2.1.1.

I did find this open bug related to the issue: https://issues.apache.org/jira/browse/OPENJPA-84

After reading that bug, I figured that I will have to change the name of the column to not be a reserved word until this bug is implemented/fixed.

Regards,
Jason

On 04/25/2012 10:01 AM, Rick Curtis wrote:
Jason -

What version of OpenJPA are you running? Can you post the full stacktrace?

On Tue, Apr 24, 2012 at 11:56 AM, Jason<[email protected]>  wrote:

Hi all,

I am using OpenJPA with PostgreSQL.  I have a table where a column has the
name of "grant".  How can I get the schema creation routine to wrap the
column name "grant" in quotes?  Changing the column name is doable, but not
preferable.

I have tried the brain dead solution of just using: @Column(name =
"\"grant\"")

But that results in an error...PersistenceException: column already exists.

Any suggestions?

Regards,
Jason







Reply via email to