issue « Update « JPA Q&A





1. Hibernate update issue    stackoverflow.com

I have a strange Hibernate behaviour in my program. I have two classes with onetomany relation: good and price:

    @Entity
    @Table(name="GOODS")
    public class ...

2. issue with updating record in database using JPA    stackoverflow.com

I have object in database with values as follows: id =1 name = "john" chargeid = 6 I am using merge statemet to update the code em.merge(obj) When i see the query generated by JPA i found ...

3. Hibernate persistence issue ...    coderanch.com

4. new extra update issue    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.0 Mapping documents: in Child mapping file: in Parent mapping file I have above standard one-to-many association, in the Parent POJO, I also have a standard setter for the children set, like: public class Parent implements serializable{ ...

5. Data Persistence Issue    forum.hibernate.org

we have commited all the transactions and we also have a generic save,update and delete methods that do the operation within a transaction and commits there itself. We use more than 4 tables to fetch the result using joins and criteria. so its hard to upload all the hbm and class files. [if required, we can do that...] We are not ...

6. saveOrUpdate() issue    forum.hibernate.org

hibernate verison: 3.0.5 issue using hibernate in managed environment. Using sessionFactory bound to jndi for getting sesison. Binding Interceptor to Sesseionfactory. code is : sessionfactory = new Configuration().configure(url1).setInterceptor(interceptor).buildSessionFactory(); session =sessionfactory.getCurrentSession(); FuelType ft = new FuelType(); ft.setCreationDate(new Date()); ft.setName("petrol"); session.saveOrUpdate(ft); session.flush(); However, if session.save() method is used then it works. While persisting , following error comes: org.hibernate.TransientObjectException: The given object has a ...

7. Issue of update record of mandatory    forum.hibernate.org

In our project, each table have two field which use to record last update datatime and created datatime. about created time, i can set created datetime's value in method of Interceptor.onSave which will be callback before entity insert to database, but i can't find same method of update action. can you help me which method can be use?

8. SaveOrUpdate() issues    forum.hibernate.org

I want to migrate a database from MySQL to Postgres. However I would like to keep the same user ids from a user tabel for instance, so what I am doing it: Code: for(User user:list){ ...

9. many-to-many bridge table saving issue    forum.hibernate.org

Hi, We have an application using hibernate 3.0 and spring framework with a mysql 5 database. We have modelled an Order object and a Charge object. An order can have one or more charges. So we modelled this as a many-to-many relationship such that there are 3 tables, order table, charge table and an order_charge table. The order_charge table is a ...





10. update issue    forum.hibernate.org

Newbie Joined: Sun Jan 01, 2006 7:57 am Posts: 8 Hibernate version: 3.1 Hello, I have a problem with getting the most recent data from database... So the problem: I load the jsf page, I get the list of my persons... Now I add an employee. And when I come back to see the changes of my list, I have there ...

11. Issues commiting an update to the database    forum.hibernate.org

I'm running an update sql and I'm having trouble committing my changes to the database. The row count for the update is what is expected but neither tx.commit nor session.flush() is flushing my changes to the database. Also the query seems to lock up the database because when I run a simple select on the table afterwards, the results take a ...

12. issue saving user object to the database with uniqueid.    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.2.6ga Mapping documents: ... INSERT INTO users (userid, ..., password,...) values (?, ?, AES_ENCRYPT(?,'&key;'),...); UPDATE ... where userid = ?; NOTE: The order of the parameters here matches ...

13. Update Store Procedure Issues    forum.hibernate.org

Hi, I am using Hibernate 3.2.3 with Enterprise DB, and Weblogic 9 as the application server. JDK version is 1.5. For insert an update operations I am using stored procedures. For insert I am using the check="none" attribute. Inserts work just fine. However, when updating I get the following error - A result was returned when none was expected. I tried ...

14. Issue with HQL Update using inner joins and subqueyr    forum.hibernate.org

Why does the following query using (Hibernate-Version: 3.2.6.ga): Code: UPDATE finance.ManagementFee AS object_alias SET object_alias.managersCommissionPercentage = :value WHERE object_alias.systemID = :systemID AND object_alias.id in ( SELECT managementFee.id ...

15. Weird issue with merge using JPA...?    forums.oracle.com