Save « MySQL « JPA Q&A





1. Hibernate Save strange behaviour    stackoverflow.com

I have a user object that has a one-to-many relationship with String types. I believe they are simple mappings. The types table hold the associated user_id and variable type names, with ...

2. Saving tree-structures in Databases    stackoverflow.com

I use Hibernate/Spring and a MySQL Database for my data management. Currently I display a tree-structure in a JTable. A tree can have several branches, in turn a branch can have several ...

3. Data not saved in MySQL    forum.hibernate.org

Newbie Joined: Tue Oct 26, 2010 5:37 am Posts: 5 Hi friends, i am new to hibernate. just went through an example found in roseindia. it deals with a simple contact saving. i followed their notes and all works fine. but when looking for data in MySQL databse, it seems empty.. My code is given below Main class ---------- package roseindia.tutorial.hibernate; ...

4. mysql saving to database get wrong    forum.hibernate.org

Newbie Joined: Wed Feb 11, 2004 10:56 am Posts: 2 i get the following exception if i try to save the customer object to the database: [junit] [DEMO] DEBUG [main] ServiceLocator.(50) | Looking up Session in JNDI [junit] [DEMO] INFO [main] ServiceLocator.(56) | error communicating with JNDI, assuming testcase [junit] [DEMO] DEBUG [main] ServiceLocator.getConnection(199) | Opened hibernate session. [junit] [DEMO] DEBUG ...

5. hibernate3&mysql: Object-id not filled after save    forum.hibernate.org

I'm using mysql and hibernate3 and can't seem to get my primary keys filled. id is the primary key of unit, and it's set to auto_increment in mysql: Unit unit = new Unit(); unit.setName("noId"); Session session = HibernateUtil.getSession(); Transaction tx = session.beginTransaction(); session.save(unit); tx.commit(); session.close(); System.out.println("Generated key: " + unit.getId()); assertTrue("generated key not returned", unit.getId()>0); prints 0 and throws and AssertionFailedError. ...

6. SQL error 1064 when saving with mysql 4.0    forum.hibernate.org

Newbie Joined: Tue Feb 08, 2005 3:59 pm Posts: 4 Read the rules before posting! http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 2.0 Mapping documents: ...

7. data is not saved to mysql    forum.hibernate.org

I have a very simple test case, a CategoryType public class CategoryType { private Long id; private String name; public CategoryType(String typeName) { this.name = typeName; } public CategoryType() { } // methods get/set name get/set id toString/equals/hashCode Hibernate version: 3.0.5 Mapping documents:

8. Why Hibernate don't save an object to MySQL database.    forum.hibernate.org

Author Message Yuri_M Post subject: Why Hibernate don't save an object to MySQL database. Posted: Sun Apr 16, 2006 11:29 am Newbie Joined: Sun Apr 16, 2006 10:18 am Posts: 3 I have the following problem. Hibernate do't want to save objects to MySQL DB. Hibernate version: version 3.1.3 Mapping documents: