JPA 4 « JPA « Spring Q&A





1. How come the second Hibernate method doesn't do its job?    forum.springsource.org

Updates/inserts of Hibernate occur only after a commit (actually a flush). So unless you aren't committing your transaction nothing is going to happen in the database.

2. doubt about relations/printing values with hibernate    forum.springsource.org

doubt about relations/printing values with hibernate hello guys it can be persistent but i need have a explanation for this doubt check this simple pojo Code: public class Articulo { private ...

3. spring jpa    forum.springsource.org

spring jpa After reading the 'Getting Started With JPA in Spring 2.0' I tried to follow the steps illustrated in the article to make it work with my small prototype but ...

4. Intro To Hibernate    forum.springsource.org

Yeah I googled and got a bunch of stuff. I just wanted to know if there were any out there that the more experienced developers found more useful than others. Thanks. ...

5. Spring 2.0x support Hibernate 2.x?    forum.springsource.org

Hi I am working with Hibernate 2.18 and with Spring 1.2x. I would like to upgrade to spring 2.0x but I can not upgrade to Hibernate 3.x. Does Spring 2.0x support ...

6. Spring 2.0.2, JPA and LoadTimeWeaver problem    forum.springsource.org

Mar 5th, 2007, 05:22 AM #1 jl_monteagudo View Profile View Forum Posts Private Message Junior Member Join Date Nov 2006 Posts 6 Spring 2.0.2, JPA and LoadTimeWeaver problem Hi friends, I'm ...

7. how to make spring hibernate    forum.springsource.org

Mar 6th, 2007, 08:44 AM #1 tamzom View Profile View Forum Posts Private Message Junior Member Join Date Mar 2007 Posts 2 how to make spring hibernate I am now to ...

8. problem: xdolcet/hibernate defining relations FK    forum.springsource.org

h guys i need your help i have this already created i work with xdoclet Code: ...

9. spring + hibernate + jpa + NamingStrategy    forum.springsource.org

spring + hibernate + jpa + NamingStrategy I have created a custom NamingStrategy by extending hibernates ImprovedNamingStrategy. How I do I configure spring/hibernate/jpa to recognize this NamingStrategy? I have tried creating ...





10. Hibernate -> Spring Conversion    forum.springsource.org

Hibernate -> Spring Conversion we are trying to make some code that we have working work in spring config: ...

11. Hibernate + Spring in Rich Client App    forum.springsource.org

Hibernate + Spring in Rich Client App I tried to use hibernate + spring in Rich Client App. I used beans definitions exactly like in my Web App Code:

12. consult about hibernate : creation of clases that depends between them    forum.springsource.org

hello guys i have some pojo clases used by hibernate pls, see this method Service BO class Code: protected void doProcesoMovimientoInsertarDetalleEntradaAlmacenBO( AjaxWrapDetalleEntradaSalidaAlmacen ajaxWrapDetalleEntradaSalidaAlmacen) throws MyGlobalException{ String idDetalleAlmacen = this.concreteDetalleEntradaAlmacenImpl.insertarDetalleEntradaAlmacenBO(ajaxWrapDetalleEntradaSalidaAlmacen); this.concreteArticuloImpl.updateStockArticuloBO( ajaxWrapDetalleEntradaSalidaAlmacen.getIdArticulo(), ...

13. Basic Hibernate problem    forum.springsource.org

Thanks for the reply, I'll try it out, but I'm curious about why the delete(queryString) doesn't do its job; should be working looking at the API.

14. Custom authz / Hibernate problem    forum.springsource.org

Custom authz / Hibernate problem Hi, this is more Hibernate specific problem but have connection to Acegi so I decided to post problem here. I implemented custom authorization: I wrote AclService ...

15. Jpa - Posgresql problem    forum.springsource.org

Jpa - Posgresql problem Hi I'm wondering if its possible to substract two dates from eachother in a jpa query. In that case, what is the type which gets returned? In ...

16. weird case with org.hibernate.WrongClassException    forum.springsource.org

hi guys some times when i execute a service that consist in 3 BO classes i recieve sometimes this error Code: Hibernate: select detalleent0_.idDetalleAlmacen as idDetall1_7_0_, detalleent0_.idArticulo as idArticulo7_0_, detalleent0_.cantidad as ...





17. Hibernate Forum or Spring Forum???    forum.springsource.org

Hibernate Forum or Spring Forum??? Hi Members/Moderators, i see that many people are using this forum and are asking questions which are purely hibernate related and not at all related with ...

18. Spring/Hibernate evict    forum.springsource.org

Spring/Hibernate evict Hi, I am having trouble using evict with Hibernate and Spring. - Here is what i want to do I want to stop Hibernate from making an update that ...

19. Spring +Hibernate +JPA persisit problem    forum.springsource.org

Apr 10th, 2007, 02:27 PM #1 sam74 View Profile View Forum Posts Private Message Junior Member Join Date Dec 2005 Posts 16 Spring +Hibernate +JPA persisit problem Hi All, I am ...

20. Spring Hibernate Only persists after extra work    forum.springsource.org

Spring Hibernate Only persists after extra work Hi, Apologese if this has been logged before, I have searched but can't find anything to help. I will give a brief summary first. ...

21. Spring & Hibernate Debug info    forum.springsource.org

How do i see the DEBUG statements given by Spring & Hibernate in My console? I use spring 1.2.* and Hibernate and use RAD for development. Server is WAS 6.0 test ...

22. Problems with Hibernate    forum.springsource.org

Apr 19th, 2007, 10:22 PM #1 colin_young View Profile View Forum Posts Private Message Junior Member Join Date Mar 2006 Location Salem, MA Posts 29 Problems with Hibernate I'm having some ...

23. Timed tasks & Hibernate    forum.springsource.org

Timed tasks & Hibernate Hey, I want to be able to run a query on my database and populate a list which is returned to the view. Right now, I have ...

24. Which is the best practice to use Spring with Hibernate?    forum.springsource.org

Which is the best practice to use Spring with Hibernate? Which is the best practice to use Spring with Hibernate? I'm not legacy with no previous technology i would like known ...

25. Hibernate With Spring    forum.springsource.org

Hibernate With Spring I have some problem while implementing spring with hibernate.I am not getting any errors but the data is not inserted in the db. Its a very simple application.I ...

26. Hibernate Representaion    forum.springsource.org

I have let us say table TAB with fields A,B,C,D My bean is of the structure { String A; Map map; //where key is B and value is another bean with ...

27. Differece between Hibernate    forum.springsource.org

Hi, you should have a look at the hibernate site for mor details. Hibernate 3.0 support the new JPA standard, so you can use annotations to configure your entity mapping if ...

28. hibernate / is this normal behaviour?    forum.springsource.org

It is in fact the case for cascade="all" that deletion of the parent causes the deletion of a child. If you do not want the child to be deleted you have ...

29. jTDS SQL7 & Hibernate    forum.springsource.org

jTDS SQL7 & Hibernate Hi all I am currently introducing myself to Spring framework, I have been used EJB2 & jboss form my projects until now. I have some issues trying ...

30. Using new ACL with Spring Hibernate    forum.springsource.org

Using new ACL with Spring Hibernate Hi there, I am looking to implement Acegi into my spring-hibernate application. However, after playing around with the latest Acegi package (1.0.3) for a few ...

31. SM 0.8 : ValidationBean & Hibernate    forum.springsource.org

SM 0.8 : ValidationBean & Hibernate Hello, I've make a test using hibernate annotations with ValidatorBean. I've encountered a problem and have modified SM 0.8 basecode in order to resolve it. ...

32. ACLS ... and Hibernate    forum.springsource.org

ACLS ... and Hibernate I spent a couple of days wrestling an issue so I thought I'd post the solution. I'm using the new acls on hibernate persisted objects. I am ...

33. JPA and Java 1.4    forum.springsource.org

34. JPA - how mature is it?    forum.springsource.org

We would appreciate hearing from people who have been developing with JPA. to help us decide if it the vendor implementations - Hibernate, TopLink, etc are mature enough at this point ...

35. UnexpectedRollbackException by using JPA    forum.springsource.org

Jun 9th, 2007, 12:59 PM #1 thomas2004 View Profile View Forum Posts Private Message Senior Member Join Date Jun 2007 Posts 159 UnexpectedRollbackException by using JPA I have two entities "Employee" ...

36. Spring + JPA    forum.springsource.org

Jun 11th, 2007, 04:30 PM #1 lfp View Profile View Forum Posts Private Message Junior Member Join Date Jun 2007 Posts 4 Spring + JPA Hi, I got a Exception when ...

37. Spring + JPA    forum.springsource.org

Jun 11th, 2007, 06:02 PM #1 lfp View Profile View Forum Posts Private Message Junior Member Join Date Jun 2007 Posts 4 Spring + JPA Hi, I got a Exception when ...

38. Spring/ Hibernate componentization    forum.springsource.org

Spring/ Hibernate componentization hi all, i have one interesting topic to ask you all, which is linked to one of my other thread (http://forum.springframework.org/sho...d.php?p=127740) so, starting point is that i have ...

39. spring2.1 + hibernate3 question    forum.springsource.org

I am a newer to hibernate and spring. I know hibernate could map colums to database,and spring is application layer,right? Anyone could tell me the relationship of hibernate and spring? Now ...

40. Hibernate formulas anybody?    forum.springsource.org

Hibernate formulas anybody? Hi all I've got a strictly Hibernate-related problem, but am still posting here as response is usually MUCH better! I've got an entity PARTICIPANT with a property birthyear, ...

41. Clarify JPA / EXTENDED semantics?    forum.springsource.org

In EJB3, a Container Managed EntityManager with 'EXTENDED' scope gets closed when the @Remove -annotated field of the stateful session bean is called. The (normally excellent) Spring documentation was really unclear ...

42. How to configure Spring to use Hibernate StatelessSessionImpl    forum.springsource.org

I'm converting an OracleForms application to a Java web application. Due to the structure of OracleForms, I'd like to use Hibernate's StatelessSessionImpl class instead of SessionImpl as the Hibernate Session implementation. ...

43. JPA and Implementation    forum.springsource.org

I'm only a beginner with JPA myself, but I'm not sure what you mean. What is it you're trying to get hold of?

44. How Persistent Bag works in Hibernate World    forum.springsource.org

Here is my class looks like: public class MyList extends ArrayList{ List contents; add() remove() } when I called remove(). it indicated that PersistentBag.remove() got called, and then it crashed. Can ...

45. Spring-Hibernate: Regarding Setting up SetBigStringTryClob.    forum.springsource.org

Spring-Hibernate: Regarding Setting up SetBigStringTryClob. Hi, I was trying to retrieve a clob data which is of more than 4000 character length from an entity using Hibernate. In the hibernate mapping ...

46. JPA and Hibernate statistics    forum.springsource.org

Hello, I need to get the Hibernate statistics using JPA...I was checking the JMX bean StatisticsService which helps in collection of statictics...Unfortunately I do not have a handle on SessionFactory as ...

47. JPA Generate DDL    forum.springsource.org

JPA Generate DDL Hello, Has anyone got the DDL to be generated using spring jpa config? Code: 2007-07-23 13:50:42,132 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] - Running hbm2ddl schema update 2007-07-23 13:50:42,132 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] - ...

48. Spring 2.0.6 & Hibernate bug    forum.springsource.org

Why in Spring Framework 2.0.6 Hibernate lib is not upgraded to current version 3.2.4SP1? In Spring Framework 2.0.6 Hibernate version is 3.2.3.ga that have a pretty serious performance problem (see hibernate ...

49. SerializationException when doing deserialization using Spring Hibernate 2.0.2    forum.springsource.org

Jul 31st, 2007, 11:13 AM #1 mkarami View Profile View Forum Posts Private Message Junior Member Join Date Jul 2007 Posts 8 SerializationException when doing deserialization using Spring Hibernate 2.0.2 Hi ...

50. simple use of hibernate in spring    forum.springsource.org

simple use of hibernate in spring hi, i'm new to Spring and as a start i'm trying it in a very simple test project. for data access i'm using hibernate and ...

51. Spring + Hibernate    forum.springsource.org

All, I have the same exception as described in this thread.. http://forum.springframework.org/sho...sionFactory%27 and http://forum.springframework.org/arc...p/t-11450.html This exception occurs when I run my JUNIT test cases. I haven't gone beyond this. The only ...

52. DI behind-the-scenes with Hibernate?    forum.springsource.org

53. JPA Tx Flushed when Delegating to Hibernate    forum.springsource.org

I have an tx boundary method in a typical service which calls a dao to load an entity. The loading of the entity has to delegate to the underlying JPA implementation ...

54. Hibernate statistics with JPA    forum.springsource.org

Hibernate statistics with JPA I'm trying to wire the Statistics Service but I'm encountering some problems along the way. I've configured it this way: Code: ...

55. How to resolve org.hibernate.ObjectNotFoundException:    forum.springsource.org

Aug 23rd, 2007, 01:27 AM #1 Dinesh_Kumar View Profile View Forum Posts Private Message Junior Member Join Date Jul 2007 Posts 25 How to resolve org.hibernate.ObjectNotFoundException: I have written the two ...

56. JPA and Spring    forum.springsource.org

Hi, Im using JPA with spring 2.0. Im not able to persist the object into the database though im able to select the same. Alos, when i try to insert in ...

57. Asynchronous operation with Hibernate best practice    forum.springsource.org

Asynchronous operation with Hibernate best practice I have the following architecture: Spring MVC in the web layer with Open Session In View, Hibernate managed data layer, and a middle tier with ...

58. Asynchronous operation and Hibernate Best Practice    forum.springsource.org

Asynchronous operation and Hibernate Best Practice Reposted from the Web forum because this is a more appropriate forum. I have the following architecture: Spring MVC in the web layer with Open ...

59. Hibernate 3 - java.lang.IndexOutOfBoundsException    forum.springsource.org

Hibernate 3 - java.lang.IndexOutOfBoundsException Hi, my problem is this exception: java.lang.IndexOutOfBoundsException: Remember that ordinal parameters are 1-based! at org.hibernate.engine.query.ParameterMetadata.getOr dinalParameterDescriptor(ParameterMetadata.java:55 ) at org.hibernate.engine.query.ParameterMetadata.getOr dinalParameterExpectedType(ParameterMetadata.java: 61) at org.hibernate.impl.AbstractQueryImpl.determineType (AbstractQueryImpl.java:397) at org.hibernate.impl.AbstractQueryImpl.setParameter( AbstractQueryImpl.java:369) ...

60. Hibernate for backend    forum.springsource.org

61. Automatic deletion in hibernate?    forum.springsource.org

hi.. (hibernate 2.1.7c) assuming i have a parnet child object model loaded from hibernate, if i remove an object from the collection and add a new one (it's primary key will ...

62. Using JPA without referencing Spring    forum.springsource.org

Sep 14th, 2007, 02:21 PM #1 fusion35 View Profile View Forum Posts Private Message Junior Member Join Date Sep 2007 Posts 8 Using JPA without referencing Spring Based on Bens's blog ...

63. Spring JPA    forum.springsource.org

Sep 18th, 2007, 09:43 AM #1 eRAZOR View Profile View Forum Posts Private Message Junior Member Join Date Sep 2007 Posts 11 Spring JPA Hello I'm trying to get Spring JPA ...

64. Hibernate - createCriteria question    forum.springsource.org

Alright, I have a parent - child relationship on my hands. I want to query putting a restriction on the child records. No biggie there. The catch is that I only ...

65. Hibernate find    forum.springsource.org

Hibernate find hello, I want too make a join across three tables. The normal query: Code: select * from reservation r RIGHT JOIN reservationitem ri ON r.id = ri.reservation_id RIGHT JOIN ...

66. spring & hibernate    forum.springsource.org

spring & hibernate I am trying to write a program to intergrate spring & hibernate.I have written the code in a folder called hibernate_spring. I have copied the spring.jar file and ...

67. Persistance with JPA    forum.springsource.org

Persistance with JPA I am using JPA and Hibernate together with an HSQL database. Data can be retrieved from a table, but when using entityMaster.persist(objectInstance) it appears to generate no insert ...

68. Hibernate TX Support Broken in 2.5-rc1    forum.springsource.org

Oct 26th, 2007, 09:58 AM #1 redijedi View Profile View Forum Posts Private Message Member Join Date Oct 2005 Posts 40 Hibernate TX Support Broken in 2.5-rc1 I think the transaction ...

69. WebSphereUowTransactionManager and Hibernate    forum.springsource.org

WebSphereUowTransactionManager and Hibernate Hi, I am planning to use the new WebSphereUowTransactionManager along with hibernate in my project. If I am using this transaction manager, what should be the values for ...

70. Hibernate: One-to-Many Bidirectional question    forum.springsource.org

Nov 7th, 2007, 05:58 AM #1 l1nk View Profile View Forum Posts Private Message Junior Member Join Date Jul 2007 Location Braga, Portugal Posts 14 Hibernate: One-to-Many Bidirectional question Hi. Im ...

71. How to mapp class in Hibernate?    forum.springsource.org

How to mapp class in Hibernate? Hi, I've created new connection with Hibernate and Spring framework.I configured common.xml file,created sessionFactory,added Job.hbm.xml which I've created and mapp to Job class.When I start ...

72. Issue using Hibernate 3 with spring    forum.springsource.org

Issue using Hibernate 3 with spring Hi, This is the first time I am trying to use Hibernate3 with Spring frame work. Before I have some experience using JDBC with spring. ...

73. Problems using Hibernate in Spring 2    forum.springsource.org

Problems using Hibernate in Spring 2 I am trying to determine why my objects are not being saved to the database. I have a Parent object with three Child objects, all ...

74. Using findByNamedQuery with Spring and Hibernate    forum.springsource.org

Using findByNamedQuery with Spring and Hibernate Hi All, I am using Spring and hibernate with Oracle. I try to use the findByNameQuery as follow: < ![CDATA[ SELECT d.company, d.application, e.companyName, ...

75. hibernate and spring    forum.springsource.org

Where can I find the odmg.jar in spring distribution? Please tell me the jar files that should be placed in the classpath to integrate hibernate framework with spring framework.

76. Problem with Hibernate UserType for java.util.UUID    forum.springsource.org

Nov 19th, 2007, 05:07 PM #1 bessette View Profile View Forum Posts Private Message Junior Member Join Date Oct 2007 Posts 27 Problem with Hibernate UserType for java.util.UUID One of my ...

77. Component Scan and Hibernate    forum.springsource.org

Can the LocalSessionFactoryBean work with component-scan such that any @Entity will be added to the mapping? Then we can save to define mapping class in hibernate-cfg.xml. Many Thanks

78. Hibernate: annotatedPackages doesn't work?    forum.springsource.org

Hello, I'm having the exact same problem as the person in this thread: http://forum.springframework.org/showthread.php?t=33507 Unfortunately, his problem wasn't answered clearly. The result of this thread is a little ambiguous. Can anyone ...

79. Refersh Issue in Spring Hibernate AJAX project    forum.springsource.org

Refersh Issue in Spring Hibernate AJAX project Hi, I am currently working in a project which uses Spring, Hibernate, AJAX. The development environment consist of Tomcat with Oracle in Windows XP ...

80. Refresh Issue in Spring Hibernate AJAX project    forum.springsource.org

Refresh Issue in Spring Hibernate AJAX project Hi, I am currently working in a project which uses Spring, Hibernate, AJAX. The development environment consist of Tomcat with Oracle in Windows XP ...

81. Using boot InnoDB and MyISAM hibernate dialects seems to be inefficient    forum.springsource.org

Hi all, I would like (and it's working) to use booth InnoDB and MyISAM hibernate dialects. Why ? Because part of my process is inserting many many rows. For these data, ...

82. AbstractTransactionalDataSourceSpringContextTests and Hibernate Problem    forum.springsource.org

AbstractTransactionalDataSourceSpringContextTests and Hibernate Problem Hi, In my test - extending AbstractTransactionalDataSourceSpringContextTests, I am tring to put some data into the db using hibernate, then testing a method which acceses the db ...

83. Hibernate primarykey problem    forum.springsource.org

Hi, I have table which does not have a primary key .The hbm xml is showing error without primary key.so is there any other way to map the xml without primary ...

84. Implementing hibernate in spring    forum.springsource.org

Hi I think that this is not possible actually with the classic hibernate.cfg.xml configuration file but the the hibernate annotation API permit this (using Code: sessionFactory = new AnnotationConfiguration() .addPackage("org.springframework.samples.imagedb") //the ...

85. Telling spring about hibernate    forum.springsource.org

Hi Friends, Is there any way in spring to tell about hibernate in web.xml , spring configuration file or in any other file. ie, I would like to know how we ...

87. Get System time using spring+hibernate    forum.springsource.org

Hi, guys: In my project, I'm using spring + hibernate. In my business logic when inserting records, I have to get DB system datetime to insert into table's column. Could you ...

88. A question about using Spring, Facelets and Jpa    forum.springsource.org

Hi all, I am going to build my web application using Spring, Facelets and Jpa. Seems these are IN at the moment. But I failed to find any articles, tutorials or ...

89. Spring Hibernate compatibility problem    forum.springsource.org

Spring Hibernate compatibility problem Hi, I'm using SPRING 2.5, Hibernate 1.7.3 I'm able to build the project successfully but it is giving run time error, below is the Error Error: ERROR ...

90. Simplify a simple JPA App    forum.springsource.org

Simplify a simple JPA App Hello, I have a running sample application with the following configuration persistence.xml Code: oracle.toplink.essentials.PersistenceProvider springsample.SampleOne

91. Hibernate Utility    forum.springsource.org

Hibernate Utility Hello, I have created a utility for improving usage of hibernate. This utility is an attempt to solve issues we face while using hibernate.Currently solving these four problems: 1)Updating ...

92. Would this work instead of Hibernate.initialize()?    forum.springsource.org

Hi. The relationship between Team and Player entities is one-to-many. Inside a transaction, to fully initialize the player side we could use: Hibernate.initialize(team.getPlayers()); Well, why not just call: team.getPlayers(); ? Thanks ...

93. Hibernate + Spring + XATransactions    forum.springsource.org

Hibernate + Spring + XATransactions I am using Hiberante3.2 with Spring2.0.6 . Also, I am using declarative transaction handling in spring . With HibernateTransactionManager single datasource it is working great . ...

94. Hibernate findQuery returning 3 x duplicates    forum.springsource.org

Jan 31st, 2008, 03:47 AM #1 davout View Profile View Forum Posts Private Message Member Join Date Oct 2006 Posts 82 Hibernate findQuery returning 3 x duplicates I'm using Hibernate as ...

95. Spring, Hibernate & partitioning    forum.springsource.org

Spring, Hibernate & partitioning Hi there, I'm using spring and hibernate in my application. I got a few usecases where I have to query very large tables. These tables are range ...

96. Hibernate hangs    forum.springsource.org

Hibernate hangs I am running the following code: Code: public long getLimitForDate(Calendar date, String divCode) { _log.debug("getLimitForDate(" + (date.get(Calendar.MONTH) + 1) + "/" + date.get(Calendar.DATE)+ "/" + date.get(Calendar.YEAR) + "," + ...

97. Jpa    forum.springsource.org

Hi, Are there plans to have an item reader which can have a JPQL query rather than an HQL query whch is available now ? Thanks..Vijay

98. Multiple interface implementation with hibernate, impossible?    forum.springsource.org

Hi, given: Code: public interface A {} public interface B {} public class X implements A, B {} how can i map class X that implements interfaces A and B? i ...

99. Hibernate with plpython and iText ?    forum.springsource.org

Hibernate with plpython and iText ? Hello, in my db I have a lot of data to retrive and computerize.Than I want to create pdf (using iText). Sometimes problems occures becouse ...

100. Spring - JPA not working    forum.springsource.org

Spring - JPA not working Hi My Spring Hibernate JPA configuration is not working. The code is as below. Can you please help Code: