Error was: org.postgresql.util.PSQLException: ERROR: relation "tablename" already exists

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Error was: org.postgresql.util.PSQLException: ERROR: relation "tablename" already exists

Derek Lew-2
Hi

 

I have created a new entity, but everytime I am getting the following error,
how do I set it in such a way that it will check if the entity is there and
don't create anymore?

Error was: org.postgresql.util.PSQLException: ERROR: relation "tablename"
already exists

 

Best regards.
 
Derek Lew 刘绍雄

 

Reply | Threaded
Open this post in threaded view
|

Re: Error was: org.postgresql.util.PSQLException: ERROR: relation "tablename" already exists

Michael Brohl-3
Hi  Derek,

I guess your relation name/fk-name  is the same as your table name,
that's not allowed. You might want to provide your entity definition so
we can see what's wrong with it.

Michael Brohl
ecomify GmbH
www.ecomify.de


Am 23.09.15 um 08:13 schrieb Derek Lew:

> Hi
>
>  
>
> I have created a new entity, but everytime I am getting the following error,
> how do I set it in such a way that it will check if the entity is there and
> don't create anymore?
>
> Error was: org.postgresql.util.PSQLException: ERROR: relation "tablename"
> already exists
>
>  
>
> Best regards.
>    
> Derek Lew 刘绍雄
>
>  
>
>


smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Error was: org.postgresql.util.PSQLException: ERROR: relation "tablename" already exists

Derek Lew-2
Hi Michael,

Thanks, I have the table name and entity name of the same.

Best regards,

Derek

-----Original Message-----
From: Michael Brohl [mailto:[hidden email]]
Sent: Wednesday, 23 September 2015 7:08 PM
To: [hidden email]
Subject: Re: Error was: org.postgresql.util.PSQLException: ERROR: relation "tablename" already exists

Hi  Derek,

I guess your relation name/fk-name  is the same as your table name,
that's not allowed. You might want to provide your entity definition so
we can see what's wrong with it.

Michael Brohl
ecomify GmbH
www.ecomify.de


Am 23.09.15 um 08:13 schrieb Derek Lew:

> Hi
>
>  
>
> I have created a new entity, but everytime I am getting the following error,
> how do I set it in such a way that it will check if the entity is there and
> don't create anymore?
>
> Error was: org.postgresql.util.PSQLException: ERROR: relation "tablename"
> already exists
>
>  
>
> Best regards.
>    
> Derek Lew 刘绍雄
>
>  
>
>