1. How to update a single field in hibernate coderanch.com |
2. Updating only changed fields into table forum.hibernate.orgHi, I want to update only changed field without loading complete row from DB. Consider the below mentioned scenario: I want to update the EMP.firstName only for the emp record without loading the complete record from DB & changing the firstName & again call save on new object. If I set only firstName & persist the emp object it will make ... |
3. Updating only changed fields into table forum.hibernate.orgHi, I want to update only changed field without loading complete row from DB. Consider the below mentioned scenario: I want to update the EMP.firstName only for the emp record without loading the complete record from DB & changing the firstName & again call save on new object. If I set only firstName & persist the emp object it will make ... |
4. Hibernate how to know which field is needed to update forum.hibernate.orgHi All, I am child on Hiberate. I read the tutorial. But, I have a question. Please see the following example: 1. Assume, there is a table, called customers. 2. The table contain a field, called age. 3. Now, I want to change the age to 10. The coding is: tx = session.beginTransaction(); Customer customers=session.load(Customer.class, new long(1)); customer.setAge(customer.getAge()+1); tx.commit(); I don't ... |
5. How to update a single field in hibernate forum.hibernate.org |
6. Identifying changed fields on update forum.hibernate.orgHi, I currently have a requirement that whenever an update is being made on my entity that I send out a JMS message containing the fields that have changed on the entity. For that to work i need to know what fields have been updated / deleted or added to my entity. Is there any mechanism within hibernate that can compare ... |
7. Updating only the required fields ?? forum.hibernate.orgAnybody pls let me know whether this is possible in Hibernate. I strongly feel that it should be but I am not getting a way right now. I want to update selected columns of Catalog object (very heavy data). So I want to only set the required properties in my data object and call update on it.. So like if I ... |
8. Bulk field updates forum.hibernate.orgThanks Steve. If the syntax is available could you point me to that place? Christian, There is nothing wrong with JDBC/SQL, but I want to minimize the use of SQL in our code. There are large number of queries (1000s) in our app and maintainance would be hard if both SQL and HQL queries are mixed all over the place. Another ... |
9. Updating only certain fields. forum.hibernate.orgSo: I assume the solution is to set my class to dynamic-update=true, and only change the appropriate columns in the code, right? now, If I have a table with product name and quantity, and One user is updating the product name and another the quantity at the same time (therefore both columns are changing) Will Hibernate think that all the columns ... |
10. weired : updating one row changes a field in another row forum.hibernate.orgAuthor Message lixin_chu Post subject: weired : updating one row changes a field in another row Posted: Sun Apr 23, 2006 9:51 pm Regular Joined: Tue Jul 13, 2004 2:27 am Posts: 73 Location: Singapore Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.1.2 Mapping documents: |
11. UPDATE updates all fields, killing other changes. forum.hibernate.orgIf I fetch an object from the database and change one of its fields and then save it, the sql update that is send to the database seem to update all of the colums relentlessly. If some other process changed a value at the same time, that is overwritten when I save. Solutions to that problem? |
12. Update certain fields using Hibernate forum.hibernate.org |
13. bulk update set many fields forum.hibernate.orgHello, is it possible to use bulk updates with more than one field. I did not find any example and get an error if I try to use SQL like style. In the examples I find the following: String hqlUpdate = "update Customer c set c.name = :newName where c.name = :oldName"; but I want to use String hqlUpdate = "update ... |
14. Create values of DB fields 'CREATED_AT', 'LAST_UPDATED_AT' forum.hibernate.orgGuys, what is the best way to make values of DB fields 'CREATED_AT', 'LAST_UPDATED_AT' to be generated in Hibernate's POJOs? I know there is no solution in Hibernate framework for it. Any tricks? Note, I don't need to use DB trigers and select after update, I need createdAt, lastUpdatedAt values to be generated in Hibernate POJOs, on java application side. Thx. ... |
15. Updating a single field forum.hibernate.orgBeginner Joined: Fri May 16, 2008 3:59 pm Posts: 30 Please excuse my naivety. I'm currently querying Position objects with hibernate. each position has a fund name. for each Positions fund name, I want get a the new price for the fund , then update a single field in the same Position object. This is what I have right now, but ... |
16. Cannot update two table fields forum.hibernate.orgHello everyone i got a problem with hibernate update statement, below i am updating two table fields but when i execute a code, it updates the field of the first table and doesnot update the second. Code: String doktorTetkikUpdate = "UPDATE TblHastaTetkikHareket hastatetkik " + "SET hastatetkik.hrkTetkikDoktor = " +iMap.getLong("ICHASTNO")+" "+ ... |
17. Automatically update "LAST-MODIFIED" field forum.hibernate.orgHibernate version:3.3.2 Name and version of the database you are using:MySQL 5 Hi guys, I am using Hibernate JPA, I want to know is that possible to automatically update a field with the current time via JPA annotation? I guess JPA SPEC does not cover this but I still want to know if anybody has work arounds if annotation can not ... |