My team is applying hibernate to an existing database. We currently have java classes to map to database tables and are looking to switch the classes to use hibernate. The classes use the standard java naming convention for their gets and sets (getName, setName). However, Hibernate does not always accept the current names and seems to want the setter and getter names to be all lower case (getname, setname) for some classes and accept the current names for others.
I was wondering if there is any way to tell hibernate in the property section, or any section for that matter, to use a specified getter or setter rather than determine it on its own. It would also be nice to know why hibernate would sometimes accept the method names and sometime not.
We are using Hibernate 3.0 and PostgreSQL 8.0
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt: