• Post Reply Bookmark Topic Watch Topic
  • New Topic

Weird ConstraintViolationException  RSS feed

 
Greenhorn
Posts: 1
Chrome Netbeans IDE Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys,
I got a problem that is very weird.. This is the situation:
I have two classes: Code and FinancialMove. The FinancialMove has a Code (many moves to one code).
There are two codes in the db and just one of them is related to a registered FinancialMove.
If I try to remove the "unrelated" code it works, but if I try to remove the related one before it throws the exception (which is correct) then I try to remove that first one but it also says that this code is related to some financialmove.

Do you guys have any idea of what's happening?
Thanks!
 
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

You would have to supply more information; that Exception doesn’t appear to be in the standard Oracle/Sun API, so you would need to know where it is from, and its details.
 
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a javax.validation.ConstraintViolationException in the Java EE 6 API, is that what you meant?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!