openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <curti...@gmail.com>
Subject Re: column already exists....column reserved word
Date Wed, 25 Apr 2012 14:01:21 GMT
Jason -

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

On Tue, Apr 24, 2012 at 11:56 AM, Jason <jdr0887@renci.org> 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
>
>
>
>
>


-- 
*Rick Curtis*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message