Update 1 « Update « JPA Q&A





1. Force update in Hibernate    stackoverflow.com

How can I force Hibernate to update an entity instance even if the entity is not dirty? I'm using Hibernate 3.3.2 GA, Hibernate Annotations and Hibernate EntityManager btw. I really want ...

2. HowTo implement "update" in Hibernate JPA2    stackoverflow.com

Could someone provide a simple example that demonstrates how to implement a simple "update" method? This one does not update

@Override
public void update(final BS bs) {
    BS fullBs ...

3. best approach for updation using JPA    stackoverflow.com

Using JPA which method should I follow while updating? approach 1

obj o = new obj()
o.setName('val')
set other values
entitymanger.merge(ibj)
approach 2
obj o = getObjFromDb(obj)
obj.setval(name)
//not am not updating other attributes

entitymanage.merge(obj)

4. Hibernate filter for update?    stackoverflow.com

how can I restrict updates of domain restricted data? Let's say I have users of my hibernate application, which are allowed to see all contracts of a specific country (i.e. filter: country='US') How ...

5. Hibernate DataException : could not update    stackoverflow.com

I have received an exception from a live deployment of a web application (JBoss, Turbine, Hibernate). I can not reproduce the exception, therefore I can not fix the bug. Here is the ...

6. Pre-update and post-update in Hibernate    stackoverflow.com

I want to use preupdate and postupdate concepts in my application. The purpose is i want to get all values of a particulra record which is being updated and insert these ...

7. Update fails in hibernate    stackoverflow.com

I am working on hibernates with spring and using the mysql database In my project i had many tabels, among which users table is one. When i tried to update the data in ...

8. Hibernate update does suddenly not work    stackoverflow.com

I am facing a strange problem. Without any change, hibernate does not do anything if I call update for a specific entity type. There are not error/debug messages. I enabled hibernate.show_sql in ...

9. update hibernate JPA    stackoverflow.com

IN hibernate JPA how can I update of a object? I have one Project entity having two attributes. projectid and projectname. Here projectid is primary key. Now in my update method i ...





10. hibernate is updating a many-to-many unnecessarily    stackoverflow.com

I'm using Hibernate 3.2 and I have this relationship between my classes:

Class B m:m Class A m:m Class C
In one of my methods for Class A, I'm about to update an ...

11. How update operation works in hibernate?    stackoverflow.com

A per hibernate documentation , below is the definition of update operation void update(Object object) throws HibernateException Update the persistent instance with the identifier of the given detached instance. If there is a ...

12. Hibernate daemon update    stackoverflow.com

I have a quite an update-intensive application and was wondering if it is a good idea to have a daemon thread that has a hibernate session and that takes update instructions ...

13. Update in hibernate    coderanch.com

14. hibernate - updates ....    coderanch.com

Hi Guys : I finally got my inserts and selects working in hibernate. Now Im having the problem that I cant update. Session session = null; SessionFactory sessionFactory = new Configuration ().configure().buildSessionFactory(); session = sessionFactory.openSession(); Transaction t = session.beginTransaction(); session.merge(o); session.persist(o); t.commit(); The call to "persist" results in an exception : detached entity passed to persist: dao.Script What is a detached ...

15. hibernate update in single transcation    coderanch.com

Hi, i have problem when i retrieve data from honey table i have no problem in retrieving data.when i try to save a new value with the same honey instance i get the following error.but this how i must do only with the same instance not with new instance if honey class.Can anybody help me out in this.. INACTIVE org.hibernate.MappingException: org.hibernate.HibernateException: ...

16. JPA and external updates    coderanch.com

Hi, I want to create a simple application that uses JPA. The application will do only queries (not insert or update) and show the results with a simple custom web app. So good, so far. I can implement this One thing that I also need is to update some values over time. So, the question is, if I use another DB ...





17. Not able to update in Hibernate 3    coderanch.com

Hi All, Am using hibernate 3 with the integration of Struts and Springs. Am able to connect database and able to fetch data with select statement, but not able to update. While am updating its giving an error like "Not supported for DML operations" This is my code. package com.wham.dao; import java.util.ArrayList; import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.dao.DataAccessException; import ...

18. hibernate update    coderanch.com

19. update using JPA    coderanch.com

Hi I m using glassfish v2 and persistence in a web application. Well i want to ask:- How to update using em.createQuery in JTA in detail:- I m calling persistence codes using a normal java class file inside a web Application I can select easily using this code: - @PersistenceUnit public EntityManagerFactory emf; EntityManager em; public List fname (String id) { ...

20. Hibernate Update ?    coderanch.com

21. Hibernate update function    java-forums.org

import java.util.Date; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.hibernate.cfg.Configuration; public class UpdateExample { /** * */ public static void main(String[] args) { // TODO Auto-generated method stub Session sess = null; try { SessionFactory fact = new Configuration() .configure().buildSessionFactory(); sess = fact.openSession(); Transaction tr = sess.beginTransaction(); Insurance ins = (Insurance)sess.get (Insurance.class, new Long(1)); ins.setInsuranceName("Prajin"); ins.setInvestementAmount(2000); ins.setInvestementDate(new Date()); sess.update(ins); tr.commit(); sess.close(); ...

22. update in many-to-one    forum.hibernate.org

Hello, I hava a question in my mapping I have Code: ...

23. hibernate update not working    forum.hibernate.org

24. Is this Normal behaviour when updating a set    forum.hibernate.org

Newbie Joined: Sat Jan 16, 2010 9:02 am Posts: 1 Hi Folks, Spent 2 hours searching for a straight answer on this but cant find one.... Hope u can help. Its regarding loads of delete and inserts being generated when i modify a set. I have an Group class that contains a many-to-many relationship with a User class. This relationship has ...

25. Weird update    forum.hibernate.org

Hi all, this is my first post on this forums. I'm trying to persist a simple entity. Look at the following code: Code: Configuration config = new Configuration(); config.configure(); SessionFactory factory = config.buildSessionFactory(); ...

26. update from 3.2.6 to current    forum.hibernate.org

27. Unable to update - please help    forum.hibernate.org

Hi there, Can someone please help resolve this error? I am trying to update in hibernate but transaction fails with the error "Illegal attempt to associate a collection with two open sessions". I am using Hibernate with Spring. I am using HibernateTemplate for the transactions. I have a simple form with Product information entry. In my controller, I read entries in ...

28. Simple update required - thoughts on implementation please    forum.hibernate.org

Hi , I have inherited a web based application which uses Hibernate , Spring MVC and Velocity. I am not very experienced in any of these topics but can do a good job of reverse engineering learning - which has allowed me to do pretty much everything i require...anyhows i need to send emails from the system to a selected group ...

29. Versioned updated chokes on leap seconds.    forum.hibernate.org

Hey, I keep running into a problem which i just can't figure out how to get around. I've got an entity Track: Code: ...

30. Updating ManyToAny programmtically    forum.hibernate.org

Newbie Joined: Thu Mar 26, 2009 3:00 pm Posts: 11 Hi, I have an application which needs to add the concrete classes to a ManyToAny relationship at runtime. Below is the code I'm currently using to do this : Code: configuration = new AnnotationConfiguration().configure(); SessionFactory tempSessionFactory = configuration.buildSessionFactory(); ...

31. StaleStateException on View update    forum.hibernate.org

Author Message poschd Post subject: StaleStateException on View update Posted: Thu Aug 26, 2010 11:49 am Newbie Joined: Mon Mar 15, 2010 11:17 am Posts: 1 Dear Hibernate community! I have been struggling with a org.hibernate.StaleStateException for quite a while now, searched the net and tried a lot of things, but neither of my attempts were successful. So I ...

32. update    forum.hibernate.org

33. Track where updates happens    forum.hibernate.org

34. Hibernate Update ?    forum.hibernate.org

35. Hibernate update    forum.hibernate.org

36. No updates are occurring    forum.hibernate.org

37. Hibernate and Canonical Update    forum.hibernate.org

Consider a multi-user service that provides primarily read-only access to data, and therefore caches objects. Update logic within this service must satisfy the following requirements: 1. Proposed changes are not available through the cache before the update has been successfully applied. 2. Changes are available through the cache after the update is successfully applied. 3. If an error is encountered on ...

39. How do I do multirow updates?    forum.hibernate.org

I have a question regarding multirow updates. Here is my scenario: I have a table called Policy that has two columns, name and item. The item colum is an int and is used to order the policies. It has a unique constraint. What I want to be able to do in a web app is move a given policy up the ...

40. Forced update    forum.hibernate.org

Hi, I am using the optismistic feature of the hibernate. But, in some places I need not worry about the current version of the row. Meaning, I just want to update some column which no other thread would have modified since I read. Is it possible to do a forced update while using the optimistic locking? Thanks in advance, Younus

41. Documentation update for 2.1: when?    forum.hibernate.org

42. Update done without asking !?    forum.hibernate.org

Hello Everyone, I know I must be wrong but please tell me what I missed. At some point the transaction is commtted, flush gets invoked. An entity is detected to be dirty (which is true) then updated. The problem is that neither save nor update nor saveOrUpdate was called on that entity (doubled check with debugger). Any clue ? Thanks alot ...

43. Utilize NOW() in an update?    forum.hibernate.org

I guess a little more detail couldn't hurt. I'm trying to mark an open session as closed by putting the current timestamp into the "closed" column. I don't think there's anything that I can put into the UserSession object's closed property that would cause the database to put the value from NOW() into it. What other alternatives do I have? Thanks, ...

44. About (Mass) Update    forum.hibernate.org

I would like to do some update operation, say updating a column of all (or subset) or rows of the table. There are 2 approaches 1. Retreieve all the data objects, update the state of the data objects one by one, and the save 2. Use a single SQL statement to do the update For approach 1, it would be having ...

45. Possible update bug in 2.1 final?    forum.hibernate.org

...

46. detecting updates across a cluster?    forum.hibernate.org

I have been considering switching completely away from J2EE towards Hibernate, partly because many of the client/server systems I write don't require (or even have the resources for) a full application server and partly because I prefer the flexibility of choosing my own system architecture. I would need a cluster-capable persistence engine, which I see that Hibernate now offers, which is ...

47. Update required for answer in advanced FAQ    forum.hibernate.org

48. Proposal - Configurable Update Strategies    forum.hibernate.org

I want to state this proposal with the following respect of: 1.) the fact of keeping a grip on the api "bloat" factor. 2.) the fact that this scenario can be managed via the property. 3.) the fact that this proposal coding time to implement may be exponential. The Proposal Add a attribute and a new method ...

49. update bug    forum.hibernate.org

hi, i have some strange behaviour when updating some of my instances which prevent null field values. i am working with hibernate version 2.1 and mysql 4.1 first here the table def Code: create table CONNECTOR (ID CHAR(32) NOT NULL PRIMARY KEY, NAME VARCHAR(50) ...

50. Evicting After an update causes no update.    forum.hibernate.org

Hello, I'm puzzled by the following point : Evicting an entity after an update but before flushing causes no update at all. Is this by design ? If an update is called the on the entity, to me the entity should be saved no matter what (thus regardless of eviction). Dept d10 = (Dept) fSession.load(Dept.class, new Integer(10)); d10.setName(d10.getName() + "1"); fSession.update(d10); ...

51. How to do update on rowsets    forum.hibernate.org

52. Jestate demo application update    forum.hibernate.org

53. how can we pass update commands in hibernate    forum.hibernate.org

54. Erroneous update    forum.hibernate.org

Author Message Myk Post subject: Erroneous update Posted: Tue Apr 13, 2004 10:15 am Senior Joined: Sun Jan 04, 2004 2:46 pm Posts: 147 I have a problem where an update is being generated when I'm doing a find(). Hibernate 2.1.1 SQLServer 2000 Debug level log Code: DEBUG [xxx.ServerConnectionManager] [User: quilleashm] (ServerConnectionManager.java:171) - Method request: ServerCore.executeHQL( java.lang.String:from CalculusToolbar c ...

55. Update failure    forum.hibernate.org

When I set null value into a not null column and try to update the row by commiting the transaction (the object was loaded in the same session), as expected, I get a PropertyValueException. But in the catch block, when i try to simply close the session, the close fails with the same exception. My questions is why would the close ...

56. Create form / update form    forum.hibernate.org

Hi, I've got a form to create a user. This works correctly. I also have a search functionality so you can search a user and then select him to update him. No problem. The insertUserForm will be populated with all values. But when I want to save the user, A new user is created. What am I missing?

57. Unnecessary Update    forum.hibernate.org

Hi, I have a structure of three objects linked like this: A many-to-one with B (with cascade=all) B with a List of C objects. (with lazy=false, with cascade=all) A,B and C have as key (chvp, generator class="increment") I'm trying to do this: Load the object A and all of its children. Put all the keys(chvp) of the three elements == null ...

58. Best way to update with Hibernate?    forum.hibernate.org

Michael, just doing session.update() doesn't work for me. It simply doesn't understand that is the same object (and it actually is, i made myself sure of it specifying the correct id). It's clear when i use saveORupdate method, hibernate creates another object (as my table is using auto_increment, it simply ignores the id of my object and stores a new one ...

59. JDK1.5 compatibility updates?    forum.hibernate.org

60. after update the result show in the page haven't updated yet    forum.hibernate.org

page1.jsp list all information of a table the scripts are as follow: <% Query paperQuery = hisession.createQuery("select paper from Paper paper"); Iterator iterator = paperQuery.iterate(); while(iterator.hasNext()) { Paper tempPaper = (Paper)iterator.next(); //... } %> page2.jsp,update a row of the table,as follows: <% net.sf.hibernate.Session hisession = HibernateUtil.currentSession(); java.util.List paperList = hisession.find("select paper from Paper paper where paper.id=" + Util.getRequestInt(request,"paperid")); Paper thepaper = ...

61. strange update behavior    forum.hibernate.org

ok, i save Parent object, which a list of Child objects. now, when i get Parent object from the store, and update the collection (add and delete from children), then save it, all is fine (using all-delete-orphans) but, when i get create a new Parent object (coming down from the web layer, populated from a form, but with the same id), ...

62. updating only the changes    forum.hibernate.org

I understand if I call saveOrUpdateCopy() in a detached session, a load is performed and only the changes are updated in the database. If I am tracking the propery changes in my object, is there any way to tell hibernate what what properties to update in the database and skip the load. If not, it will be a nice feature to ...

63. Hibernate update example    forum.hibernate.org

Hi, I have an one-to-many parent/child associations, and I want to update those classes changing some values of parents and some values of childs, also I'd like to add two new childrens, my questions is: How can I do that ?? I'm using assigned ID generations and I'm not using unsaved-value parameter in the mapping file... Does anyone can tell me ...

64. Steve, Please update the wiki    forum.hibernate.org

It seems lots of people are having the same issue and are struggling to get this rather neat integration working. Perhaps an update the wiki page to include a section detailing the selection of the "Hibernate Stateless SessionBean" in the jboss.xml in the ejb jar. An example EJB jar might also be useful.

65. where dose the update command come from?    forum.hibernate.org

66. I get StaleObjectException when trying to update...    forum.hibernate.org

Hi all, I am getting StaleObjectException when I try to update a row. Mapping documents:

67. Please, update DTD 2.0    forum.hibernate.org

68. Update: How to resolve?    forum.hibernate.org

69. many-to-many update    forum.hibernate.org

Hi gurus! we have a many to many asso. from contact to receiverlist. and both are in a many to one asso. to user. means a user can have many receiverlists and many contacts. and a contact can belong to may receiverlists and inverse. if we now make a update in our receiverlist. e.g. add a new contact to the receiverlist. ...

70. one-to-one -missing update in one case- misunderstanding?    forum.hibernate.org

Hibernate version: 2.1.6 Hi, i know, that i should show my mapping-documents etc. but i first want to ask if i have a mistake in thinking ... could be ;) I've got a one-to-one-relationship (cascading=all;outer-join=true) between ClassA and ClassB (using primary-key - composite-ids on both side and version-columns). Everything works fine ... insert, update and delete works perfectly. Only one thing ...

71. M-1 updates    forum.hibernate.org

2004-11-25 10:40:00,520 DEBUG [net.sf.hibernate.impl.SessionFactoryObjectFactory] JNDI lookup: hibernate/HibernateFactory 2004-11-25 10:40:00,520 DEBUG [net.sf.hibernate.impl.SessionFactoryObjectFactory] lookup: uid=8ae496f7006edfbb01006ee2ea170001 2004-11-25 10:40:00,520 DEBUG [net.sf.hibernate.impl.SessionImpl] opened session 2004-11-25 10:40:00,581 DEBUG [net.sf.hibernate.impl.SessionImpl] saving [com.palantir.db.SHStakeholder#] 2004-11-25 10:40:00,581 DEBUG [net.sf.hibernate.impl.SessionImpl] executing insertions 2004-11-25 10:40:00,581 DEBUG [net.sf.hibernate.engine.Cascades] processing cascades for: com.palantir.db.SHStakeholder 2004-11-25 10:40:00,581 DEBUG [net.sf.hibernate.engine.Cascades] cascading to saveOrUpdate() 2004-11-25 10:40:00,581 DEBUG [net.sf.hibernate.impl.SessionImpl] saveOrUpdate() unsaved instance 2004-11-25 10:40:00,681 DEBUG [net.sf.hibernate.impl.SessionImpl] generated identifier: 653502 2004-11-25 ...

72. Update    forum.hibernate.org

73. How to enforce Hiber. to update only col.that were changed?    forum.hibernate.org

Hibernate version: 2.1.6 Database: Oracle 9.2.05 Hi I have following problem. We have object Contract that maps to Contract table. This object and table has around 60 columns. We process this table in following sequence: - we read this column to Contract object - we modify attributes in this object - and we call hibernate update method for this object. We ...

74. NPE during update    forum.hibernate.org

I tried to submit the bug that when i call update on object with null version property the NPE is thrown. The bug was closed by Gavin King 'cause with explanation "You cannot call update() on an object with a null version property. By definition." And I would like to ask, why for update it is not by definition permited and ...

75. Help with Update    forum.hibernate.org

Hi - I am using Hibernate v2.1.7, and I have a question regarding update. Suppose I have a table, User, with numerous records already in the table. And suppose I want to update one of the fields in one of the records in the database. Is there a way to update without loading(retrieving) that record from the database and just updating ...

76. Removing a failed update from the scheduled updates    forum.hibernate.org

Author Message Antity Post subject: Removing a failed update from the scheduled updates Posted: Mon Mar 21, 2005 2:59 pm Newbie Joined: Mon Mar 21, 2005 1:46 pm Posts: 6 Hello all, I encounter an unexpected behaviour from hibernate and would like to know how to bypass it. Basically my code does this: session.find() an object from the database. ...

77. EntityPersister - Why no use of Types in update?    forum.hibernate.org

Hibernate version: 2.1.8 Hi there, i've got a question concerning the following method (@see EntityPersister): Code: protected String generateUpdateString(boolean[] includeProperty, Object[] oldFields) { Update update = generateUpdate(includeProperty); if ( optimisticLockMode()>Versioning.OPTIMISTIC_LOCK_VERSION && oldFields!=null ) { boolean[] includeInWhere = ...

78. updates    forum.hibernate.org

79. one Update fails in a loop and the rest gets completed    forum.hibernate.org

Newbie Joined: Mon Apr 11, 2005 2:28 am Posts: 1 Hi I am a newbie in Hibernate but have to work on an Project which uses Hibernate. The project is using Hibernate 2.1, Struts, a proprietory layer which interacts with Hibernate and Oracle 9i and Tomcat 4.1 I have an method (A) which calls certain other classes of the proprietory framework ...

80. Info about update    forum.hibernate.org

82. how can I check conflicts on updating?    forum.hibernate.org

how can I check conflicts on updating? in a web application, how to avoid two people to update a record on same time? for example: there are two people A and B A and B read recorder rec_original. A updated recorder to rec_a B doesn't know A has updated . he try to update rec_original to rec_b. NOW it's a conflict ...

83. hibernate nested update and create    forum.hibernate.org

I am using Hibernate 3.0.4 and trying to update an object that has a new subobject and that subobject has objects as well.. For example foo has a one to many with bar which has a one to many with junk. the save fails because bars generated id never gets set in the junk objects so when junk tries to save ...

84. Updating    forum.hibernate.org

Hi, To update in hibernate as far as I know you first retrieve a reference to the object then change the fields and they get updated in database. I have a form from struts. I use BeanUtils and end up w/ an object that the user saved. If I take the reference from the database and assign the one w/ the ...

85. updating roll back    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp [b]Hibernate version:[/b] [b]Mapping documents:[/b] [b]Code between sessionFactory.openSession() and session.close():[/b] [b]Full stack trace of any exception that occurs:[/b] [b]Name and version of the database you are using:[/b] [b]The generated SQL (show_sql=true):[/b] [b]Debug level Hibernate log excerpt:[/b] I am using web service and hibernate to update the objects. But I got rollback without ...

86. could not update & Optional feature not implemented    forum.hibernate.org

Hi all, I want to update a class (User.class), but I get error,and for loading User.class there is no error. my DB is MS access. thanks for any help. ____________ public class App_details extends Action{ public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { HttpSession hs= request.getSession( false); InvAddressForm invAddressForm = (InvAddressForm ) form; // if (invAddressForm.getInv_address1() != ...

87. Update not working.. bug???    forum.hibernate.org

Newbie Joined: Fri Jun 24, 2005 3:57 pm Posts: 11 I am performing an update. When I review the log, I see no errors, but the database is not updated either. I am very confused and am not sure where to even begin to debug this. Any help would be greatly appreciated! Hibernate version: 3.0 Mapping documents:

88. update does not work without errormessage    forum.hibernate.org

Newbie Joined: Thu Jun 16, 2005 2:51 am Posts: 12 Hello, I want to update a detached Element(in a JBOSS Environment). That did not work without any errormessage. So now I reload the element, and save it in the same session with the same result. I tried session.update too. What could be the problem? Hibernate version: 3.0.5 Mapping documents: ...

89. Update not working    forum.hibernate.org

90. Prevent implicit updates?    forum.hibernate.org

Hibernate Version 2.1.3 I'm trying to work this out, have read through everything I can lay my hands on and am still trying to work out an ideal solution to this problem - I don't want any object in my session (whether new or loaded) to be updated without my explicitly calling save or update for that specific object. I have ...

91. compositeKey update failure    forum.hibernate.org

I am useing Hibernate with Spring. I have a table with no primary key and trying to update a rwo from UI. Mapping file I tried with save and saveUpdate methods ...

92. How to update hibernate 3    forum.hibernate.org

Hello, my name is Amel, I'm come from Indonesia. I'm a new person in hibernate. Now, I migration into hibernate 3. I have do this step: 1. Change the net.sf.hibernate -> org.hibernate 2. Copy the .jar to lib directory Is that enough for the update? Please help me by teach me step by step, coz I'm very confuse. If you reply ...

93. system throws SessionException when update    forum.hibernate.org

My update code as follow : Session session = HibernateUtil.currentSession(); try { HibernateUtil.beginTransaction(); session.saveOrUpdate(pojo); HibernateUtil.commitTransaction(); } catch (HibernateException e) { throw new InfrastructureException(e); } finally { HibernateUtil.closeSession(); } when I update pojo, system throws : org.hibernate.SessionException: Session is closed at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:131) at org.hibernate.transaction.JDBCTransaction.commitAndResetAutoCommit(JDBCTransaction.java:119) at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:95) at com.muyi.hibernate.session.HibernateUtil.commitTransaction(HibernateUtil.java:120) at com.muyi.hibernate.dao.AbstractDao.update(AbstractDao.java:60) ...... I have confirmed that my logic has no problems , so ...

94. Mass Update?    forum.hibernate.org

I need to change the status of all Employees that meet certain criteria. This is an administrative function, and I don't need to fetch the Employee objects. Is there a way to do this in Hibernate 2.1 without getting a Collection, iterating through them and changing the status? In this case, I would think a straight JDBC update statement would be ...

95. update not executing?    forum.hibernate.org

Author Message jemminger Post subject: update not executing? Posted: Fri Oct 28, 2005 5:50 pm Newbie Joined: Fri Jan 23, 2004 5:19 pm Posts: 13 i'm using Hibernate 3.0 with Tapestry 4.0 beta 11, using long sessions. i have a test application Wiki, and the edit page is updating my WikiPage object's properties correctly, and calling the DAO, which ...

96. Automagic updating of timestamps    forum.hibernate.org

I have an object that I am persisting to a database that has created and modified dates. Those two dates map to columns of MySQL type 'timestamp'. I don't want to sound lazy, but I'm wondering if there is a way to have Hibernate update those dates for me rather than having to manually do it. Using insert and update as ...

97. Manual updates are not reflected in UI    forum.hibernate.org

98. Selective Update    forum.hibernate.org

Hibernate version: 3.0 How do I do a selective update ? Here's the exact problem. I have a table the is fairly complicated. I extract the records as list on a web screen page and there I allow user to edit the quantity. The only columns I have for the whole list are the id(pk) and the quantity. The rest of ...

99. Updating with Hibernate - please for urgent help    forum.hibernate.org

I have a simple code: Code: int updatedEntities = getHibernateTemplate().executeFind(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { return session.createQuery( ...

100. Getting updates when I shouldn't be...    forum.hibernate.org

Regular Joined: Mon Nov 14, 2005 7:33 pm Posts: 73 I have a single table, with a single PK, mapped to a single object...as plain vanilla as you can possibly get with hibernate...however...I am getting an update for every row that is selected...this is blowing my mind! I'm simply calling a list of records inside of a single, open session & ...