object « JPA « Spring Q&A





1. working with object with spring and hibernate    stackoverflow.com

hope everybody is cool.I've been trying to do something with spring-hibernate but it's still a failure.i'm very new to it.i need a little help.supposing a POJO class Users.i want to return ...

2. How can I get the Hibernate Configuration object from Spring?    stackoverflow.com

I am trying to obtain Spring-defined Hibernate Configuration and SessionFactory objects in my non-Spring code. The following is the definition in my applicationContext.xml file: Code:

<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
   <property name="hibernateProperties">
  ...

3. How should my business objects be set up with a Spring/Hibernate project    stackoverflow.com

I'm setting up a Spring 3/Hibernate 3.6 application architecture for the first time and have all of the parts configured but need more information about the proper architecture design for a ...

4. Circular object graphs in Hibernate    forum.springsource.org

Circular object graphs in Hibernate Hello all. I'm having a little trouble, and I can't seem to find any info on what I need. Hopefully someone here can set me straight. ...

5. Hibernate saving object    forum.springsource.org

May 2nd, 2011, 01:24 AM #1 solomon_13000 View Profile View Forum Posts Private Message Junior Member Join Date Mar 2011 Posts 14 Hibernate saving object Below is the code to save ...

6. How to get the Hibernate Configuration object or equivalent?    forum.springsource.org

Spring instantiates the Hibernate SessionFactory itself. How can I get the Hibernate Configuration (Spring reads this data from the applicationContext.xml instead) or equivalent? I need to do this in order to ...

7. States of Hibernate objects passed to a business method    forum.springsource.org

States of Hibernate objects passed to a business method I have a bunch of business objects that are wrapped by transaction proxies using TransactionProxyFactoryBean with a HibernateTransactionManager. If an object is ...

8. Hibernate configuration object.    forum.springsource.org

Hi. I'm getting the Hibernate SessionFactory through the spring framework and I need the hibernate Configuration for investigating it. How can I access it :?: Is there a way :?: Thanks ...

9. Hibernate question: How to map *value object* hierarchy?    forum.springsource.org

Hibernate question: How to map *value object* hierarchy? I'm asking here, since sometime I don't get any answer at Hibernate forums ... When I have a value object inside some entity, ...





10. Hibernate not able to map value object hierarchy?!    forum.springsource.org

Hibernate not able to map value object hierarchy?! Hi. In absence of answer at Hibernate forums, I had to ask here... Hibernate praises itself for letting developer design domain model in ...

11. Problem saving composite object with Hibernate    forum.springsource.org

Nov 7th, 2005, 02:29 PM #1 noodles View Profile View Forum Posts Junior Member Join Date Aug 2005 Posts 5 Problem saving composite object with Hibernate I can make it works ...

12. Statistics for Spring (similar to Hibernate's Statistics object)    forum.springsource.org

Other than Spring JMX, does Spring have a Statistics object similar to Hibernate which provides info on Hibernate's operations? I want to display info about the beans Spring is managing (e.g. ...

13. how to get Hibernate configuration object    forum.springsource.org

how to get Hibernate configuration object I'm trying to create a SchemaExport object in my code which requires the Hibernate Configuration object e.g. new SchemaExport(cfg).create(false, true); I thought it would be ...

14. How can I prevent Hibernate from saving modified objects?    forum.springsource.org

How can I prevent Hibernate from saving modified objects? I'm using DAOs implemented with HibernateTemplate and HibernateInterceptor to mantain Hib's session. This app does mostly read-only operations, but I modify the ...

15. reattaching Hibernate objects    forum.springsource.org

reattaching Hibernate objects HI, after reading many threads here in this forum about lazy loading of hibernate objects, it seems that the only solution for loading a hibernate object in one ...

16. Cached Hibernate Object not Showing    forum.springsource.org

Jul 13th, 2006, 06:13 AM #1 LORDs_diakonos View Profile View Forum Posts Private Message Member Join Date Oct 2005 Posts 79 Cached Hibernate Object not Showing OK I have jtaTransactions set ...





17. Issue with phantom object creation when retrieving via hibernate    forum.springsource.org

Issue with phantom object creation when retrieving via hibernate Hi, I'm running into this issue where I retrieve data from the database using hibernate (template) and somehow get objects with no ...

18. Obtaining Hibernate Configuration object from Spring    forum.springsource.org

Hello, We are using Spring+Hibernate for our project. From within HibernateDaoSupport object how can I get the reference to org.hibernate.cfg.Configuration object? Any help would be appreciated. Thanks Matt

19. detach object in Hibernate    forum.springsource.org

detach object in Hibernate Hi, I got stuck with this: Code: public void xxx(...) { SomeObject object = someDao.getSomeObjectById(id); // will call getHibernateTemplate().load() object.setDeleted(new Date()); /* detach object, I don't know ...

20. Newbie Hibernate: mixing simple and complex object mappings?!?    forum.springsource.org

Newbie Hibernate: mixing simple and complex object mappings?!? As a newbie I'm hoping somebody can help me with some advice of how best to address a Hibernate requirement where I want ...

21. Newbie Hibernate: mapping for composite object?    forum.springsource.org

Newbie Hibernate: mapping for composite object? In my application design I have a table to hold entity instances and a separate table to hold the entity status, like... Code: Entity ------- ...

22. Hibernate Object Problems    forum.springsource.org

May 3rd, 2007, 08:03 AM #1 yvk View Profile View Forum Posts Private Message Junior Member Join Date Oct 2006 Posts 19 Hibernate Object Problems Hi, I am using spring with ...

23. How to detect if hibernate object was modified    forum.springsource.org

I have a requirement to log the event each time a record is modified. Is there a simple way in Spring/Hibernate to detect if the object has been modified since it ...

24. Problem persisting object using spring jpa and hibernate    forum.springsource.org

Oct 18th, 2007, 07:13 AM #1 Ramraj View Profile View Forum Posts Private Message Junior Member Join Date May 2007 Posts 5 Problem persisting object using spring jpa and hibernate Hi ...

25. Persisting related objects in JPA    forum.springsource.org

Persisting related objects in JPA I have two objects, User and TradingDesk. User has a ManyToOne relationship with a Trading Desk. The relationship is defined in the User class as : ...

26. determine if object is transient via hibernate?    forum.springsource.org

hi .. is there any api that will determine if an object is transient (meaning it was not given a primary key), i could check the primary key myself, but to ...

27. Deep cloning of object graph in Hibernate    forum.springsource.org

Deep cloning of object graph in Hibernate We have a requirement that involves cloning of a fairly complex object graph. What we need is to take an existing graph of objects ...

28. How do I obtain the Hibernate Configuration object    forum.springsource.org

How do I obtain the Hibernate Configuration object With Hibernate the SessionFactory (EntityManagerFactory equivalent) is created from a Configuration object. How can I gain access to this object after having confugred ...

29. org.hibernate.TransientObjectException: object references an unsaved transient...    forum.springsource.org

org.hibernate.TransientObjectException: object references an unsaved transient... hey guys we're trying to get to the bottom of the following error message but are not able to find a solution, even with help ...

30. Hibernate object mutation question    forum.springsource.org

Hibernate object mutation question Hi! I've created a Hibernate entity, which is more or less the following: @Entity class Directory { Integer id; String name; Directory parent; List subdirectories; } My ...

31. overload object with hibernate    forum.springsource.org

overload object with hibernate Hi, here is my problem : I have a core project and this project can have multiple modules for the moment I have one applicationContext for each ...

32. Is there another way to avoid LIE other than Hibernate.initialize(Object) and OSIV ?    forum.springsource.org

Is there another way to avoid LIE other than Hibernate.initialize(Object) and OSIV ? Dear all, I am facing the L.I.E right now and i'm looking for the solution. I have tried ...

33. Hibernate. Get object by associated one    forum.springsource.org

I have class Game that has collection of players. This snippet is from Game.hbm.xml: Code: How can I get Game if ...

34. detaching object in Hibernate    forum.springsource.org

Hi I have an POJO I retrieved from the database with Hibernate. I would like to "detach" this object. By this I mean, I do not want any changes made to ...

35. JPA keep holding the inserted partial object    forum.springsource.org

JPA keep holding the inserted partial object I have Company_Contacts with PK contain two objects Company and Users. When i insert new company_contact row i use company_id and user_id which i ...

36. Possible to get Hibernate's Configuration object?    forum.springsource.org

Hi I love Spring it is the next best thing to sliced bread heh anyway during my testing I'm interested in getting ahold of the Configuration object used to build hibernate's ...