JPA 5 « JPA « Spring Q&A





1. Pitchfork - Spring - Hibernate    forum.springsource.org

Pitchfork - Spring - Hibernate My problem: I am stuck with BEA Weblogic version 9.2 because we are developing a SIP application that is tied to this release. I really don't ...

2. App Structure Advice. Should we go from pure Hibernate to JPA?    forum.springsource.org

App Structure Advice. Should we go from pure Hibernate to JPA? Hi there, Hopefully somebody will be able to help with this - I've not as yet found a fairly direct ...

3. Simple Spring/Hibernate question    forum.springsource.org

Mar 10th, 2008, 12:49 PM #1 Runt888 View Profile View Forum Posts Private Message Junior Member Join Date Mar 2008 Posts 8 Simple Spring/Hibernate question Hi everyone, I'm just starting out ...

4. Spring and Hibernate 3 config    forum.springsource.org

Mar 13th, 2008, 02:48 PM #1 docnhatvonhinoone View Profile View Forum Posts Private Message Junior Member Join Date Mar 2008 Posts 3 Spring and Hibernate 3 config Please help me fix ...

5. Spring - JPA - Transactionhandling    forum.springsource.org

Mar 17th, 2008, 06:36 AM #1 PieterBosman View Profile View Forum Posts Private Message Junior Member Join Date Mar 2008 Posts 16 Spring - JPA - Transactionhandling Hello, I've got a ...

6. Spring + Hibernate + JPA + Mule    forum.springsource.org

Spring + Hibernate + JPA + Mule Hi Folks, I have a problem getting data to commit using JPA with Spring. My current set up uses the @transactional annotation to declare ...

7. Hibernate Problem with MiddleGen    forum.springsource.org

Hi, I am a new user of hibernate and Spring. I want to generate the hibernate "hbm" files from middleGen tool. I download the MiddleGen API from source frog web site. ...

8. Newbie Question for Spring+Hibernate    forum.springsource.org

I am coming from Spring DAO to Hibernate. I am getting the following error when I attempt to persist data in the database Code: Exception in thread "main" org.springframework.orm.hibernate3.HibernateSystemException: reassociated object ...

9. Confusion with making Hibernate 3.2 work    forum.springsource.org

Confusion with making Hibernate 3.2 work Our project has been using Spring for some time now and we have decided to give Hibernate a go to simplify our dao layer. I ...





10. Executing something before Spring raises Hibernate    forum.springsource.org

I have a web application in which I use Spring and Hibernate. When the application is started for the first time, Hibernate generates automatically all the tables and stuff like that. ...

11. Hibernate + ACLs    forum.springsource.org

Hey everyone. We're trying to integrate Acegi ACLs with our own permission system represented through annotated Hibernate entities. I was searching around and I found a few threads that mentioned some ...

12. JPA source code for Spring 2.0.6    forum.springsource.org

Hi, I downloaded Spring 2.0.6 and needed to inspect the Java source for JPA orm but its not there, can someone tell me where I can get it from. Thanks.

13. Problem with JPA/Hibernate    forum.springsource.org

Problem with JPA/Hibernate I am coding some sample applications using Spring with JPA/Hibernate. this is my -servlet.xml Code:

17. Spring and Hibernate    forum.springsource.org

May 14th, 2008, 11:56 AM #1 aaa View Profile View Forum Posts Private Message Junior Member Join Date May 2008 Posts 4 Spring and Hibernate I'm trying to integrate Spring and ...

18. Problem with Spring and Hibernate.    forum.springsource.org

May 15th, 2008, 05:39 AM #1 aaa View Profile View Forum Posts Private Message Junior Member Join Date May 2008 Posts 4 Problem with Spring and Hibernate. Hi All, I'm very ...

19. Hibernate3 & Spring 2.5x    forum.springsource.org

Hibernate3 & Spring 2.5x Hey, It's probably a stupid question, but I'm new to the Spring framework, so please bare with me Whenever I start the webserver, I get the following ...

20. Login Problem using Spring Hibernate    forum.springsource.org

Login Problem using Spring Hibernate I have a strange situation when logging into the application using Spring and Hibernate. The login works often but sometimes it does not work meaning I ...

21. Hibernate Or Hibernate3 in Spring    forum.springsource.org

22. ConcurrentModificationException while retrieving values using hibernate    forum.springsource.org

ConcurrentModificationException while retrieving values using hibernate Hi all , I had an exception while retrieving values using hibernate. The Exception is: Code: javax.servlet.ServletException: Error in EventDAO.findByPK() :: java.util.ConcurrentModificationException org.springframework.web.servlet.FrameworkServlet.serviceWrapper(FrameworkServlet.java:402) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:346) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) ...

23. Hibernate    forum.springsource.org

Hibernate Hai friends... I want to introduce Hibernate in my project so I just started to refer some books .. that book shows hibernate can be introduced in project as two ...

24. Spring + JPA    forum.springsource.org

Spring + JPA Hello All, I have implemented DAO using JPA and when i try to run a teatcase for some DAO class i got the following exception. Code: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration ...

25. spring hibernate problem    forum.springsource.org

spring hibernate problem Hi, I am new to both of these technologies (spring MVC and hibernate). I have managed to set them up individually i.e. either of them work perfectly. I ...

26. Spring-hibernate: InvalidDataAccessApiUsageException Write operations are not allowed    forum.springsource.org

Spring-hibernate: InvalidDataAccessApiUsageException Write operations are not allowed Springframework - Hibernate config issue : InvalidDataAccessApiUsageException Write operations are not allowed -------------------------------------------------------------------- -------------------------------------------------------------------------------- I am getting the following exception when calling a bean[service ...

27. hibernate and spring    forum.springsource.org

hibernate and spring Hello, I am trying to add hibernate to my existing spring application.I am using spring 2.5,hibernate annotations 3.2, mysql and tomcat I have written applicationcontext.xml and hibernate.cfg.xml. But ...

28. hibernate_spring    forum.springsource.org

hibernate_spring Hello, I am trying to add hibernate to my existing spring application.I am using spring 2.5,hibernate annotations 3.2, mysql and tomcat I have written applicationcontext.xml and hibernate.cfg.xml. But I am ...

29. Hibernate one-to-many    forum.springsource.org

....

30. Use fragments to enrich class-space of 3rd party bundles (e.g. Hibernate)    forum.springsource.org

Use fragments to enrich class-space of 3rd party bundles (e.g. Hibernate) After replying to a question on the S2AP forum, I would like to share an OSGi-compliant 'trick' for enriching the ...

31. Spring + hibernate 3 = antlr.ANTLRException    forum.springsource.org

Jul 24th, 2008, 07:43 AM #1 ndemoor View Profile View Forum Posts Private Message Junior Member Join Date Jul 2008 Posts 2 Spring + hibernate 3 = antlr.ANTLRException Hi, my colleagues ...

32. getting JPA to work with tx aspects    forum.springsource.org

getting JPA to work with tx aspects I've tried various versions of Spring 2.5.0 - 2.5.5 and I always seem to get ... Code: java.lang.NoSuchMethodError: org.springframework.orm.jpa.JpaTransactionManager.determineTimeout(Lorg/springframework/transaction/TransactionDefinition;)I at org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:334) is it something ...

33. Difficulty setting up hibernate    forum.springsource.org

Difficulty setting up hibernate Here's the bean definition Code: net.oversee.oms.insurance.model.InsuranceSearchData net.oversee.oms.insurance.model.Driver net.oversee.oms.insurance.model.Vehicle net.oversee.oms.insurance.model.Incident ...

34. Hibernate Issue    forum.springsource.org

Hibernate Issue hi I have two methods that save data in same table of database using hibernate + spring...Primary key is auto-generated and has increment as generator..However i am getting a ...

35. hibernate    forum.springsource.org

36. Hibernate + DefaultMessageListenerContainer102    forum.springsource.org

Aug 5th, 2008, 05:35 PM #1 pshah View Profile View Forum Posts Private Message Junior Member Join Date Nov 2007 Posts 13 Hibernate + DefaultMessageListenerContainer102 Hello, I have been strugging with ...

37. using hibernate and dwr    forum.springsource.org

using hibernate and dwr if am new in spring and i want if username enter by the user exists in my database then this will be some message "user name avaliable" ...

38. Grouped "OR LIKE" Restrictions in Hibernate    forum.springsource.org

Forgive me if this should go into the forums over at hibernate! I am using Hibernate 3x along with Spring and have to achieve the below query using Hibernate Criterias. The ...

39. spring hibernate in a clustered env    forum.springsource.org

spring hibernate in a clustered env confused with the production problems. I have a spring bean which has a setter injection for a doa which is a base class of hibernateDAO ...

40. lzy initilization with spring 2.5, hibernate 3 and jdk 1.4    forum.springsource.org

lzy initilization with spring 2.5, hibernate 3 and jdk 1.4 I have one-to-many property for my entity and i want to make this lazy, so no eager fetching.My application is built ...

41. intergration Extjs+Spring+Hibernate and JPA    forum.springsource.org

42. spring 2.5.1. and hibernate 3    forum.springsource.org

spring 2.5.1. and hibernate 3 Does the combination spring 2.5.3 and hibernate 3.2.0.cr3 has any issues with connection release , do i need to set any hibernate property to control connection ...

43. Hibernate Jpa and Spring    forum.springsource.org

Hibernate Jpa and Spring Hi everyone! First of all, sorry for my english, I'm french. I did Mark Fisher's tutorial 'Getting Started With JPA in Spring 2.0' without any problem. I ...

44. Hibernate using getBean()?    forum.springsource.org

Hibernate using getBean()? Hello, I have a question regarding Hibernate and Object Instantiation... I think, that Hibernate loads the properties from the database and then creates a instance of the object ...

45. Problem with JPA in Spring 2.5    forum.springsource.org

Problem with JPA in Spring 2.5 Hello,I want to configure Spring and JPA but I get this error:

46. Spring and Hibernate EM    forum.springsource.org

Hi All, When using Hibernate EM with Spring there is a flush method in which I don't wanna rollback the transaction in cases of error. Although it seems that hibernate setsRollBackOnly ...

47. hibernate question    forum.springsource.org

48. Hibernate Optimization with Spring    forum.springsource.org

Hibernate Optimization with Spring Hi, first of all I'll introduce myself: my name is Guillem and I'm from Girona, Spain. Right now I'm working in a web project with JSP and ...

49. Hibernate mappingLocations Wildcard not working    forum.springsource.org

Hibernate mappingLocations Wildcard not working Hello All, I've been trying to get the "mappingLocations" property to work with my app and am kind of running into a brick wall. I'm new ...

50. Issue with SpringSessionFactory / Hibernate    forum.springsource.org

Issue with SpringSessionFactory / Hibernate hi all, i am havign some issue iwth Hibernate and Spring. i am calling a findById() method on HIbernate Dao which call this code Code: T ...

51. Roll back in hibernate    forum.springsource.org

Roll back in hibernate My reader class pass a list of objects into my writer class. My writer class insert/update many records in db. Suppose if i am throwing a business ...

52. spring hibernate setup    forum.springsource.org

spring hibernate setup I am new to spring hibernate , I am using spring 2.5.5 jdk 1.6 and hibernate 3.3.1 , and hibernate annotations 3.3.1. I am getting this exception org.hibernate.MappingException: ...

53. Spring-Hibernate with Informix    forum.springsource.org

Spring-Hibernate with Informix I have Googled a fair bit searching for Spring-Hibernate (Informix) experiences. I'd like to ask here as well. Does anyone reading this have any experience of this? I ...

54. Hibernate according to JPA    forum.springsource.org

Hibernate according to JPA Hello Everyone. I am new to this community and also to Spring. Since I have to wait probably some weeks until the ordered book arrives here in ...

55. @PersistenceContext + JPA + multiple EntityManagerss    forum.springsource.org

@PersistenceContext + JPA + multiple EntityManagerss I have the following scenario. I have a MySQL and an Oracle DB which I need to access (read and write) using JPA in the ...

56. Java Application with Spring and Hibernate    forum.springsource.org

Hi I get an issue about Spring&Hibernate mapping performance problem. There have many Java independing job started by Scheduler. The problem is whenever a job start, the program need to load ...

57. Hibernate: packagesToScan doesn't work?    forum.springsource.org

Hibernate: packagesToScan doesn't work? Hello, As of Spring 2.5.6 I used the setPackagesToScan() method accommodate this: ...

58. Can't get JPA w/Hibernate on Spring 2.5 configured    forum.springsource.org

Dec 11th, 2008, 04:27 PM #1 rrc7cz View Profile View Forum Posts Private Message Junior Member Join Date Jul 2006 Posts 17 Can't get JPA w/Hibernate on Spring 2.5 configured UPDATE: ...

59. ehcahce for normal use and for hibernate    forum.springsource.org

ehcahce for normal use and for hibernate My application uses spring, hibernate , I am new bee with little knoweldge with hibernate . I want to use ehcache for general purpose ...

60. Spring Hibernate problem    forum.springsource.org

Spring Hibernate problem hi all, i am new to spring hibernate , i have one problem i have one table like emp and i map the emp department into another table ...

61. Why Spring DM could not find xsd for JPA?    forum.springsource.org

Why Spring DM could not find xsd for JPA? Dear ALL: i have tried Hibernate JPA with Spring Dynamic Module in Eclipse. I have a bundle A with /META-INF/spring/appContext.xml which defines ...

62. how can i config spring +hibernate + proxool + jpa ?    forum.springsource.org

Jan 3rd, 2009, 11:27 PM #1 ilysony View Profile View Forum Posts Private Message Member Join Date Sep 2008 Posts 31 how can i config spring +hibernate + proxool + jpa ...

64. Hibernate problem    forum.springsource.org

Hibernate problem Hi all i'm developing a webapp with spring 2.5.6 and hibernate 3. At this time i've a strange problem: the app has various links which calls controllers method in ...

65. spring hibernate problem    forum.springsource.org

Jan 10th, 2009, 03:30 AM #1 cometta View Profile View Forum Posts Private Message Member Join Date Jan 2009 Posts 85 spring hibernate problem Hi all, i get below exception when ...

66. Newbie: Best practice guidelines for JPA    forum.springsource.org

Newbie: Best practice guidelines for JPA I've scanned the doc, this list, and Google and I'm more confused than when I started. My question is simple but the answer is likely ...

67. StaleStateException using DI and and Hibernate    forum.springsource.org

Jan 29th, 2009, 11:36 PM #1 lielar View Profile View Forum Posts Private Message Junior Member Join Date Jan 2007 Posts 3 StaleStateException using DI and and Hibernate Hi all I'm ...

68. Hibernate with Spring DM    forum.springsource.org

Hello. I am trying to persist some of my classes from one OSGi-bundle. I found a very good tutorial for this at http://www.javaworld.com/javaworld/j...i2.html?page=1 My problem is however, that in this example ...

69. Hibernate EmptyInterceptor    forum.springsource.org

Hibernate EmptyInterceptor I have a requirement where in, at the time of a write to the DB, I need to ensure certain "states" are met - I have to do this ...

70. Best practise for composing multiple modules with Hibernate + Spring    forum.springsource.org

Best practise for composing multiple modules with Hibernate + Spring Hi all, We're using Hiberate + Spring + Maven to implement a large web application. The application has been partitioned into ...

71. What are the advantages of JPA over Hibernate?    forum.springsource.org

What are the advantages of JPA over Hibernate? Hi All, I have been using Spring with Hibernate from several years and i am pretty much comfortable with these two technologies. Now ...

72. Hibernate Emergency    forum.springsource.org

Hibernate Emergency Hi Guys, I am currently stuck in development. I have to do a project in University using Spring Web MCV and Hibernate for presistence (MySQL backend). Could you please ...

73. Spring without Hibernate    forum.springsource.org

hi friends, i am beginner in Spring Framework can any help me, can we made web application without use of hibernate. or where to start i am studding Spring Framework..... Thanks, ...

74. Spring/Hibernate engagements in the wild?    forum.springsource.org

Can anyone provide some examples of the classic Spring/Hibernate stack in large scale engagements? I'm looking for sites which have high performance and load requirements and the like. (Basically, one of ...

75. JPA - To Use or Not to Use    forum.springsource.org

I am starting a project on Spring and Hibernate and there are very strict NFRs related to performance and response times (as we will also have to use web services for ...

76. Spring XT Ajax with hibernate and simpleformcontrollers    forum.springsource.org

Spring XT Ajax with hibernate and simpleformcontrollers Hi, I'm new to using spring modules and the xt ajax framework. I've been looking at the samples available on the spring modules site ...

77. Spring Hibernate newbie    forum.springsource.org

Spring Hibernate newbie Hello World! I have a problem that I've been stuck on for a few days now. The problem is probably a simple fix for all you guru's out ...

78. A basic Hibernate question to ask    forum.springsource.org

If I have a object say "Person", and a related "Person" table in DB. In the "Person" object class, if I define a property: Code: @ManyToOne(cascade=CascadeType.ALL) private Account account; The Account ...

79. Basic Hibernate question    forum.springsource.org

Basic Hibernate question Hey, User entity has one to many relationship to a component collection. Code:

80. Importing same package from two different bundles (Spring DM and Hibernate)    forum.springsource.org

Hello, Am trying to make a bundle using Spring DM and Hibernate with annotations enabled, the problem is when I try to run the bundle an exception occurs saying java.lang.ClassNotFoundException: org.hibernate.cfg.AnnotationConfiguration ...

81. Hibernate with SpringDM    forum.springsource.org

Apr 1st, 2009, 12:44 PM #1 ajkmr View Profile View Forum Posts Private Message Junior Member Join Date Nov 2008 Posts 6 Hibernate with SpringDM Hello All, I have trying to ...

82. HibernateSystemException in Hibernate with SpringDM    forum.springsource.org

My spring DM bundle (1.1.3.RELEASE) is using hibernate (com.springsource.org.hibernate-3.2.6.ga.jar). I have simple CRUD funcationality in that bundle. In addition, I have a client bundle that I have configure to invokes save ...

83. Hibernate / BRITS-161    forum.springsource.org

Hibernate / BRITS-161 Hi all, I've been spending the last four weeks to get started with Spring DM and osgi, finding out the required modules, setting up the project, testing etc. ...

84. greenpages.jpa-solution    forum.springsource.org

The type org.junit.internal.runners.JUnit4ClassRunner cannot be resolved. It is indirectly referenced from required .class files JpaDirectorySpringContextTests.java greenpages.jpa-solution/src/test/java/greenpages/jpa line 1 Java Problem

85. hibernate one-to-many problem    forum.springsource.org

Apr 21st, 2009, 06:07 AM #1 fipsn View Profile View Forum Posts Private Message Junior Member Join Date Mar 2009 Posts 16 hibernate one-to-many problem Hi, there is a One-To-Many Relationship ...

86. Using the propagation require in spring and hibernate    forum.springsource.org

Using the propagation require in spring and hibernate Greetings, currently i want to have transaction rollback for my application. However i'm currently stuck in this section what type of prop-key should ...

87. @transactiona spring + hibernate    forum.springsource.org

@transactional spring + hibernate I have the following scenario: I have a class that is marked as transactional that uses some injected managers i have. Now each time i call a ...

88. How to configure Hibernate in Spring?    forum.springsource.org

How to configure Hibernate in Spring? This is my first Spring+Hibernate project. Tomcat return me "The requested resource () is not available." when I have the following configuration in applicationContext.xml

90. Jpa 2.0    forum.springsource.org

May 19th, 2009, 04:50 AM #1 classmundo View Profile View Forum Posts Private Message Junior Member Join Date May 2009 Posts 3 Jpa 2.0 Hi: I have an application with jpa2.0 ...

91. Spring 2.5 requires Hibernate 3.1    forum.springsource.org

As of Spring 2.5, Spring requires Hibernate 3.1 or higher. Neither Hibernate 2.1 nor Hibernate 3.0 are supported anymore. Why is it so ? Is there any significant chnage that happened ...

92. Spring - Hibernate    forum.springsource.org

Spring - Hibernate Hi everybody, I'm trying to follow a tutoriel about hibernate integration in a spring project. with a big a shame, i have a probleme somewhere and i d ...

93. hibernate - spring    forum.springsource.org

hibernate - spring Hi, i've tried to follow a tutoriel about hibernate integration in a spring project. Unnfortunatly with all my shame, I have a probleme sw that i dont know. ...

94. Tweak for JPA sample    forum.springsource.org

Hi, The query string for the ItemReader in jobs/iosample/jpa.xml specifies "from CustomerCredit", but that is NOT a JPA query string. "select A from CustomerCredit A" is a JPA query string. Although ...

95. Spring & JPA on WASCE 2.1    forum.springsource.org

Spring & JPA on WASCE 2.1 Hi everyone, I'm wondering if anyone made Spring with JPA work on Websphere app server community edition 2.1.. Here's my problem: I created a JPA ...

96. Hibernate one to one    forum.springsource.org

Hi guys another question. I can see that roo supports one to many relationships in hibernate. how about one to one? also is there a way to create the sql scripts ...

97. hibernate    forum.springsource.org

hibernate hi, i have some class BookCategory that contains classes Book. Now it's possible to add new Book-objects to a BookCategory. Code: class BookCategory { Integer id; Map books = ...

98. I have a quick Hibernate question - Any takers?    forum.springsource.org

I have a quick Hibernate question - Any takers? I am using JPA and the EntityManager to persist my data. My jUnit test works fine but when I look in my ...

99. simple jpa problem (maybe i am overlooking something)    forum.springsource.org

Jun 28th, 2009, 11:06 AM #1 asifsehzaad View Profile View Forum Posts Private Message Junior Member Join Date Jun 2008 Posts 9 simple jpa problem (maybe i am overlooking something) Believe ...

100. Hibernate returns all    forum.springsource.org

Hibernate returns all I have been having an odd problem with hibernate. I creating an app that will allow me to search for certain criteria within my DB. I first tried ...