1. Best Practice Updating DB Records stackoverflow.comSay you retrieve 100 records, and display them on a page. The user only updates 2 of the records on the page. Now you want to update only the two records, ... | ||||||||||
2. Hibernate: getting a record but it's being updated in the database? stackoverflow.comFor some reason Hibernate seems to be keeping my session open and updating the object without me explicitely invoking a save/update/saveorupdate. I guess the session is staying open and it's beeing ... | ||||||||||
3. Hibernate does not update the records? stackoverflow.comI am using hibernate with spring. in daoImpl i have a single method that updates records in two tables as below.
but ... | ||||||||||
4. Hibernate does not save Object / Record coderanch.comHi all, I have written a simple example of storing "Cat" object in the Hibernate Example. I have written the client code as foloows in the servlet: ........... ........... Cat princess = new Cat(); princess.setName("Princess"); princess.setSex('F'); princess.setWeight(7.4f); System.out.println("Hello World 1"); Configuration cfg = new Configuration().configure(); SessionFactory sessionFactory = cfg.buildSessionFactory(); System.out.println("Hello World 2"); Session sess = sessionFactory.openSession(); Transaction tx= sess.beginTransaction(); System.out.println("Creating Cat"); ... | ||||||||||
5. how to update master detail record using hibernate??? coderanch.comHi! i am using hibernate framwork to persist my java objects....i have a case where i have to update a master detail record master record =======> CustomerInfo detail records =======> CustomerAccounts The problem is when i need to udate a record in detail section and another record to be added first time i just add those records one to be updated ... | ||||||||||
6. Hibernate/JPA, Persist Multiple Records in a Table coderanch.com | ||||||||||
7. How to remove the record in the bridge table forum.hibernate.orgI am using jpa. I establish a many to many relationship on Course and Student. So I have a bridge table CourseStudent. The code in Course,java @Entity @Table(name = "COURSE") public class Course implements Serializable { @ManyToMany(fetch = FetchType.EAGER) @JoinTable( // name = "COURSESTUDENT", // joinColumns = { @JoinColumn(name = "COURSE_FK", nullable = false, updatable = false) }, // inverseJoinColumns = ... | ||||||||||
8. Record not saved to Database forum.hibernate.orgHello I am new to Hibernate as i previously used Ibatis. I am facing a problem. I Have written a code to save a record to database when the code executes nothing goes wrong (ie no error or exception). But i dont find any records Saved in Database :( Please note that there is many to one relationship of Event with ... | ||||||||||
9. Hibernate update operation produced un-referenced records forum.hibernate.orgWhen update a collection in hibernate parent class. Hibernate will generate the following SQL script. Here item records are set in a list of order record Hibernate: update items set ORDERID=? where ID=? Hibernate: select hibernate_sequence.nextval from dual Hibernate: insert into items (name, ORDERID, ID) values (?, ?, ?) Hibernate: update items set ORDERID=null where ORDERID=? Hibernate: update items set ORDERID=? ... | ||||||||||
10. Hibernate not saving new record forum.hibernate.orgNewbie Joined: Tue Sep 09, 2003 5:57 pm Posts: 2 Location: Salt Lake City I've run into a strange problem with Hibernate save/update/flush. I can edit a record and the changes will save, however, when I create a new record, the new record will NOT save! Below is the code snippits that perform the save and below that is the verbose ... | ||||||||||
11. why is update when i want to add record?? forum.hibernate.orgQuote: in Dept.hbm.xml | ||||||||||
12. update record - is this correct? forum.hibernate.org | ||||||||||
13. Updated record inaccessible forum.hibernate.orgI created an object and saved it with the save() method of the Session interface. Then I retrieved it with the find() method, and changed one of the properties with a set...() accessor method. I used the update() method to save my changes. When I tried to retrieve the changed property of the object, I only got the original value, although ... | ||||||||||
14. Update successful even if no record exists...??? forum.hibernate.orgHi, I'm using Hibernate 3.0 and I have noticed that if I try to update an object using session.update(Object obj) and there is currently no corresponding database record for that object, the update executes successfully anyway! No record is added but I would have expected that calling update for an object with no corresponding db record would throw an exception - ... | ||||||||||
15. records updated even when no changes are made forum.hibernate.orgNewbie Joined: Tue Jul 05, 2005 12:42 pm Posts: 5 I am having a problem in that everytime a record is loaded and viewed it gets updated back to the database even if no changes (I think) were made. Hibernate version:3.0.5 Mapping documents: | ||||||||||
16. Updating Multiple records using Hibernate forum.hibernate.orgHi, I am new to hibernate. I am using Hibernate 2.8. And I have a requirement that I need to update multiple records in a table using hibernate. Just as we write a simple SQL query to update multiple records - Update
|