I have an EJB 3 Entity bean that has a String property annotated with: @Column(unique=true). This value is set from a JSF page.
Everything works fine as long as the user does not add whitespace add the end of the input field. In that case "someName" and "someName____" are treated not unique and are stored in the database. Is there a convenient way to remove trailing (and leading) whitespace in application land, or has this to be done in database land?
There is an SQL Server 2008 at the end of the line and I use Hibernate for ORM.
Re-Publishing your code to the dev server works wonders Sorry^^