posted 15 years ago
Hi,
I have a DB table containing names which should be unique. My name class looks (partly) like this:
However, if I now try to insert a new name into the db:
HibernateTemplate org.springframework.orm.hibernate3.support.HibernateDaoSupport.getHibernateTemplate().saveOrUpdate(nameObject);
I see an exception if the name is already in the database:
Can anyone here tell me what is wrong? I am a newbie containing Annotations, Hibernate, PostgreSQL and Spring, so the problem might be anywhere ...