1. HibernateTemplate().update(Object) function forum.hibernate.org |
2. When to use .merge() and .updtate() on the hibernatetemplate forum.hibernate.org |
3. unable to save data by using HibernateTemplate object to DB forum.hibernate.org |
4. hibernateTemplate().save is failing forum.hibernate.orgHi, I am new to hibernate and facing weird problem. When I tried to insert a record into table using hibernateTemplate().save method, getting an error "Cannot insert null into column name..). It is binding values properly. Basically no values are passed to SQL it seems. All configurations seem to be correct. prflHistId and createdBy, and dateCreated are the only required fields. ... |
5. HibernateTemplate.save Problem forum.hibernate.orgNeed help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version:3.0 Mapping documents: When i am calling HibernateTemplate.save for the following POJO class ' Code: @Entity @AccessType("property") @Table (name="Appointment") public class Appointment implements Serializable { /** * */ private static final long serialVersionUID = 1L; ... |
6. BatchUpdateException when calling HibernateTemplate.update() forum.hibernate.orgHello, In my dao layer, I have two methods which load and update records in a user table. The user table is mapped one to one, and lazy loading is set to false. In these methods, I am using Spring's HibernateTemplate. public User loadUserByUsername( String username ) { List results = getHibernateTemplate().find("from User user where user.username= ?", username); return (User) DataAccessUtils.uniqueResult( ... |
7. customize save or update in hibernatetemplate forum.hibernate.orgi am using spring with hibernate and know that we can provide a string to customize the save / update. However i can hardly find any example online and i tried several times without success. can anyone provide some samples? save(String entityName, Object entity) Persist the given transient instance. Say i want to update a record with contracttag as the key ... |