logo

Spring web app tutorial 39: Hibernate unique column

How to set column unique using Hibernate (JPA). This will cause ConstraintViolationException trying to insert non-unique username.

How to set column unique using Hibernate (JPA). This will cause ConstraintViolationException trying to insert non-unique username.


comments powered by Disqus

rss

Free online Java web application examples

Want to develop whole web applications which use database, security and more? See my github account, where are lot's of example projects:
github

Search