1. easy object persistence strategy - hibernate? stackoverflow.comI'm doing a Java software-project at my university that mainly is about storing data-sets (management of software tests). The first thing I thought of was a simple SQL DB, however the ... |
2. Manage 10,000 users updating database through web application stackoverflow.comI have a scenario where more than 100k users trying to update database concurrently through web application in struts ,hibernate . what is the best way to solve this. This application ... |
3. Hibernate Problem Not Saving to database stackoverflow.comI am getting a hibernate problem. I am trying with no success. I have a schema where there are Category,Attribute,AttributeOption. e.g. a category can be a 'computer', and its respective attribute ... |
4. HSQ Hibernate Update Problem stackoverflow.comI am trying to update an object but hibernate is trying to insert the object newly in the database, as a result i am getting a violation error since the object ... |
5. Not able to update the database in hibernate stackoverflow.comI am new to hibernate and I am using hibernate 3.0 with MySQL and I want to make the simple database operations like insert update and delete with the database.I am ... |
6. PostInsertEventListener executed before the DB was updated stackoverflow.comI put a Thread.sleep(50000) within the listener, to prove this, and the data literally wasn't stored in the DB for 50s. This is strange and rather disappointing, because I am passing ... |
7. updating the database using Hibernate coderanch.comI am new to Hibernate. I have a basic question --- What if I need to frequently update my database or add/delete rows by using Hibernate ? I want to make sure that when one client is updating the row, the others will be waiting, i.e. there should be a good locking mechanism. Does Hibernate "automatically' take care of it ? ... |
8. Hibernate keeps updating database. coderanch.comHi all, I met a weird problem when using hibernate 3.0. I got a table that has 63 columns. But when I try to load all data twice using hibernate, it will keep updating the table. And sometimes when I delete some columns in the configuration, it will work fine, but sometimes it still doesn't work. It's uncertain. And another weird ... |
9. Hibernate save(Bbject) not saving object to the database coderanch.comI have done everything right . I have provided the database connection properly , i have given the hibernate mapping properly , when i save a object to the session it is saved in the session but not in the database. I can retrieve ALL objects from the session but no values are actually added to the database , when i ... |
10. Saving objects in database using hibernate coderanch.comI am new to hibernate. I read that in order to save our object first we need to call session.save(object) and then session.flush(). I did the same but found that no rows were inserted into the database. After searching more I found that we can use transaction as Transaction tx=session.beginTransaction and after calling session.save if I call tx.commit() then rows were ... |
11. Saving lots of objects in database forum.hibernate.orgYou probably do not want to do that. A huge transaction places a considerable burden on any database engine. Also, if you're worried about working with outdated references, any process that may invalidate a reference will have to wait for your transaction to complete. Also, if the transaction is running for more than a few minutes, you risk that it is ... |
12. Help Saving and Object to the DB forum.hibernate.orgI cannot save my objects to the DB. I can do updates fine, but am having trouble creating a new object and saving it in my database. My DAO object has the following code: Session session = openSession(); Transaction tx = null; try { tx = session.beginTransaction(); Product p = new Product (new Long(4444), "Chair", new Double(1.99)); session.save(p); tx.commit(); } catch(...) ... |
13. Saving to Database forum.hibernate.orgI've met a problem regarding saving to database. When I save a new object to my database, it overrides the current content of the database. It's probably incredibly stupid problem, but I've been stuck with this for a couple of days now.. Here are some of my code: public static void saveToDatabase(User user) throws HibernateException { Session session = HibernateUtilities.currentSession(); Transaction ... |
14. Saving to Database forum.hibernate.orgI've met a problem regarding saving to database. When I save a new object to my database, it overrides the current content of the database. It's probably incredibly stupid problem, but I've been stuck with this for a couple of days now.. Here are some of my code: public static void saveToDatabase(User user) throws HibernateException { Session session = HibernateUtilities.currentSession(); Transaction ... |
15. update not reflected in the database forum.hibernate.orgWhen an update is issued to the database I don't see the update in the database. Hibernate prints the SQL statement. When i run that in the SQL editor the statement excutes fine with no errors. Can anyone let me know what are the points to be noted. 1. I load the data 2. set the new date 3. saveorupdate the ... |
16. Saving to Postgre won't actually write anything to the db. forum.hibernate.orgAuthor Message buz Post subject: Saving to Postgre won't actually write anything to the db. Posted: Wed Mar 10, 2004 9:01 am Newbie Joined: Fri Jan 09, 2004 1:02 pm Posts: 6 I have the following class to generate the Schema and a few default entities with Hibernate 2.1.2. Exporting the schema to Postgre 7.4.1 (running on FreeBSD 5.2.1) ... |
17. Update after Save doesn't show up in DB forum.hibernate.orgHibTest x = new HibTest(); x.setStringVal("some string"); x.setFloatVal(10.0F); Session sess = myFactory.openSession(); sess.saveOrUpdate(x); // this works, spits out sql, shows up in the db, etc // after this, x.id is correctly set, too x.setStringVal("new value"); sess.saveOrUpdate(x); // this does nothing, seemingly sess.close(); // At this point, I have "some string" and 10 in the database for this row. |
18. massive update in database forum.hibernate.orgI want to update 80.000 data in the database, and I decided do it with JDBC. Please, someone can tell me if my code is correct? Are there any problems doing it? After all, should I close Connection or Hibernate Session? Thanks. [code] Session session = getHibernateSession(); Connection conn = session.connection(); // do update conn.close() or session.close() ? [code][/code] |
19. updating the database forum.hibernate.orgHello, I have the following situation: c1 has 2 children c2 and c3 c2 has also 2 children c4 and c5. when I store c1 into the database, everything works fine. when I load c1 back from the database, remove c4 and store c1 into the database again, c4 is not removed from the database. Hibernates does not reconize the changes ... |
20. Removing object from Set does not remove from DB forum.hibernate.orgI have a persistent object with a many-to-one collection. Upon retrieving this object from the db I'm wanting to remove objects from the Set and add new ones as appropriate. I was reading in 14.1.4 of the hib documentation about being able to dereference the collection (Set) on the persistent object in order to allow all recs to be deleted, then ... |
21. I saved an object but I can't see the changes in the db forum.hibernate.orgBeginner Joined: Thu Jun 17, 2004 10:08 am Posts: 21 Location: Paris-France Hi, I have the problem: i'm creating an simple object and when i call save i cans see on the log the insert request but when i look on the DB there is no rows inserted ! My object is a very simple object, he got no associations at ... |
22. I saved an object but I can't see the changes in the db forum.hibernate.org |
23. How to UPDATE in my database forum.hibernate.org |
24. No database update is done by Hibernate... forum.hibernate.orgHi all, i am using Hibernate 2 and i am encountering an issue about one of my tables. I can update, deleting and modify all of my persisted objects except one of them. I noticed that the changes are done by Hibernate in his cache but the session.flush doesn't work because the changes are not done in the DB. What can ... |
25. Problems with persisting objects to database forum.hibernate.orgHi, I have problems in persisting objects to the database. Not all objects in my application are having this problem just a few of them. And the most discussing thing is that earlier they did not have this problem. The effect occures with insert and update. Im developing with different connection to the database but all of them have the same ... |
26. why 2 update in database? forum.hibernate.orgHere is my java code: Item item = new Item(); item.setName("Odissea nello spazio"); Session session = HibernateUtil.currentSession(); tx = session.beginTransaction(); session.saveOrUpdate(item); item.setDescription("libro"); tx.commit(); This code is resolved in one SQL INSERT and one SQL UPDATE, instead i expected only 1 INSERT. Here is the log of the sql: [main] Hibernate: insert into ITEMS (name, description) values (?, ?) [main] Hibernate: update ... |
27. same persistent object with two databases forum.hibernate.org[b]Hibernate version:[/b] 2.1.7 I'm designing an application and have to decide whether hibernate will be useful or not. Hence, at this stage, I'm unable to provide you with other details you had asked to post this query. Here is the situation : I have two databases D1 and D2 sitting on different physical servers both being oracle. I have to access ... |
28. How to update 2 databases with Hibernate... forum.hibernate.org |
29. Any chance of db update? forum.hibernate.orgGiven the following pseudo code: set flush mode to commit get object from database make changes to object begin transaction make other changes to the same object commit transaction is there any chance (in 2.1.8 or higher) that changes made outside of the transaction block could get written to the database? Thanks! |
30. Please help me in persisting the object in database. forum.hibernate.orgNewbie Joined: Wed May 18, 2005 12:58 pm Posts: 1 Hi, Actually I am using Hibernate to persist userProfile object. The problem is that it is not persisting the object in the database. I am calling saveOrUpdate to save the object in the database. Then I call loadById to load the object. It loads the object correctly but I cannot see ... |
31. Problems while updating a user in the database forum.hibernate.orgHibernate version 2.1.6 Microsoft SQL Server 2000 When I try to update a user that I have in the database, I receive this error that I don't know what does it means. I hope you can help me to solve it. Thanks a lot. 11:26:03,156 WARN JDBCExceptionReporter:38 - SQL Error: 8152, SQLState: 22001 11:26:03,156 ERROR JDBCExceptionReporter:46 - Les donnes chane ou ... |
32. persisted object sometimes not being stored in DB forum.hibernate.orgI have a problem that occurs sometimes. I have not been able to identify any differences in the situation that causes the problem and the situation where everything works. I am creating a new object. When I review the SQL log for postgresql in the working situation I can see: Code: 2005-08-03 17:00:53 LOG: statement: select x.linker_id as linker_id, x.subclass ... |
33. Handling database update outside of Hibernate forum.hibernate.orgI'm using Hibernate 3.0 and I'm trying to figure out exactly what I need to configure to permit the following: 1) Have a user, through hibernate, update and commit changes 2) Have a user, not through hibernate access those changes directly in the database and make changes 3) Have the hibernate user be able to view the updates that the non-hibernate ... |
34. Accessing database defaults after save? forum.hibernate.org |
35. How to check out if object was already saved in database? forum.hibernate.orgHi everybody, This may be the easy question for many of you but not for me :) I have some POJO class with an id attribute. For example public class Continent { private String continentName; private Long id; public Continent() { } public String getContinentName() { return continentName; } public void setContinentName(String val) { this.continentName = val; } public Long getId() ... |
36. Can't Update the Database forum.hibernate.orgNewbie Joined: Tue Mar 07, 2006 11:39 am Posts: 4 I am fairly new to Hibernate and apparantly really dumb because I have the book and followed the online guide and still can't get it to update my database. I can select records just fine, but it will not save anything. I apologize if this has been answered before. I saw ... |
37. When hibernate will sync dirty object with database forum.hibernate.org |
38. Object changes NOT persisting in database forum.hibernate.orgNewbie Joined: Tue Jul 25, 2006 7:53 pm Posts: 1 Hello All, I'm using the following versions: eclipse 3.1 postgresql 8.1.4 hibernate 3.1.3 to run this code: ............. start of code snip ............... Session session = loginDAO.getSession(); // using hibernate synchronizer with dao objects Login login = null; Criteria addressbookLoginCriteria = session.createCriteria(Login.class) .add( Restrictions.like("Loginname", oldAddressbookLogin .getLoginName())).add( Restrictions.like("Loginpassword", oldAddressbookLogin .getLoginPassword())); List loginList ... |
39. How to save a menu in the database? forum.hibernate.orgI would like to save my menu in the database using the folowing structure: +Menu | Menu 1 (Link) | Menu 2 (Link) | + Sub-Menu 1 (Link) (submenu is actually an instance of Menu) | Item 1 (Link) | Item 2 (Link) I cant find posts discussing this clearly. If you have an example, I would appreciate (and surely thousands ... |
40. Why does hibernate update database twice? forum.hibernate.orgAuthor Message kborkowski Post subject: Why does hibernate update database twice? Posted: Tue Nov 21, 2006 9:29 am Newbie Joined: Tue Nov 21, 2006 7:55 am Posts: 3 Location: Poland I have an example where Hibernate updates database twice - and I have no idea why. Does anybody knows the reason why the second update occures and what should ... |
41. Changes are not saving in database forum.hibernate.orgAuthor Message carlos.braqcho Post subject: Changes are not saving in database Posted: Mon Feb 05, 2007 5:23 pm Newbie Joined: Thu Nov 23, 2006 3:29 pm Posts: 5 Location: Venezuela Hello. I have a problem with a java.util.Map, when i change the value of a key or when i put a new key/value pair the changes do not save ... |
42. DB UPDATING-HIBERNATE forum.hibernate.orgCould you please precise your needs, and what you want to achieve with Hibernate. From what I quickly read, I'm not sure Hibernate is the right tool for you. Are you sure you understood what Hibernate is designed for? It's "only" a tool to save Java objects in a dbms. It has nothing to do with cvs, or groupware. |
43. Database is inconsistent after saving the same object a 2nd forum.hibernate.orgHibernate version: 3.2 mysql Ver 14.7 I have a many-to-many relation from a Plan to an array of Step. These are my hibernate mappings: Code: |
44. Object changes not persisted to database forum.hibernate.orghi all, I am doing something quiet straight forward but it doesn work. I get a persistent object from a session. Then I close the session hand the object over to the front-end. Some changes are made on the front-end and the object is sent back. I then open a new session and do a saveOrUpdate. There are no failure notices ... |
45. forcible update of objects from DB? forum.hibernate.orgHello, I am developing an Eclipse RCP graphical editor application for biological pathways using Eclipse Europa, hibernate3.2.2 with a hypersonic 1.8 database. Our business model directly backs the application viewers. At present we have a 'summary' view where we display name, description etc of a given diagram. The diagram contents are not initialised (i.e., they are 'lazilyloaded' until an explict 'open ... |
46. Updating database when no modification was done forum.hibernate.orgBeginner Joined: Thu Jan 11, 2007 7:19 pm Posts: 20 Location: Argentina, Buenos Aires Hibernate version: 3.2 Mapping documents: Code: |
47. Save object into 2 databases forum.hibernate.org |
48. hibernate not saving object into Database forum.hibernate.org |
49. Objects are not saving to database forum.hibernate.orgHi, I have a problem that objects are not saving in database. Environment: Hibernate verion 2.0 DB: SQL Server 2000 JDK: 1.5 App.Server: Orion 2.0.5 Here is the problem: There are two databases having same tables and its structure. Assume those dbs are like db1 and db2. There also two hibernate properties of each db. Our application read and write to ... |
50. Object not updated in database forum.hibernate.orgHi everyone, I have an entity called "Document" which has a many-to-one relation to the entity "Client". But on the Client side the relation to Document is one-to-one since I only want to save a reference to the latest Document. My problem now is this: First I want to create and persist a new Document including a reference to a Client, ... |
51. External database updates forum.hibernate.orgI have an application that is using Hibernate. It appears that I have to close the SessionFactory, then re-establish the SessionFactory and a new session to see updates done to the database by another application. I this correct? I have this feeling that I am not doing something correct. Can anyone shed some light on this for me? Thanks. |
52. database not updated forum.hibernate.orgHi, I begin with hibernate and spring, I made a little web app with one bean, I insert a few entries automatically when my app start, I am able to get the entries from my database and to dipslay a list on a JSP but when I try to add entries through my JSP page, my database is not updated, but ... |
53. Database Is not updated forum.hibernate.orgHello I'm using Spring and Hibernate v.3.2 with MySql. when I'm doing update or insert it looked ok and the data is saved but not in the database it saved just in cash. Do I need to change sothing in mySql configuration fil? -------- hibernate-configuration ------------ |
54. Problems with updating the db forum.hibernate.orgHi, I have a problem when using the saveOrUpdate method (through the HibernateTemplate in Spring). I try to explain the problem without attaching any code to begin with since I think that I'm doing some fundamental error. A mapped object "Entity" has a relation to another mapped object "EntitySector". This is mapped as a "bag" in the mapping files and implemented ... |
55. Database save Problem forum.hibernate.orgNewbie Joined: Tue Jun 23, 2009 3:06 am Posts: 1 Hello I am an absolute newbie in Hibernate. I am having an problem. When I am saving data no error message is coming but the data is not being saved to MySQL database. Please help. Code follows: The POJO: Code: package roseindia.tutorial.hibernate; public class Contact ... |