OpenJPA « JPA « Spring Q&A





1. Spring Open JPA    stackoverflow.com

I am trying to integrate Spring and OpenJpa. For every scenario the exception thrown is SAXParseException: No Content allowed in Prolog. I am aware that the issue is ...

2. JPA Detected reentrant flush    stackoverflow.com

I have little problem with openjpa implementation of jpa with spring 2.5. My dao method:

@Transactional
public User getUserByName(final String name) {
    return (User) getEntityManager().createQuery("select u from User as u ...

3. Spring+JPA+DAO+Tomcat    stackoverflow.com

persistence.xml

<persistence-unit name="myEntityManager" transaction-type="RESOURCE_LOCAL">
<class>com.epam.testapp.model.News</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
News
private Integer newsId;
private String title;
private String brief;
private String content;
private Date created;
private String dateCreatedString;

public News() {
}

@Id
@Column(name = "NEWS_ID")
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "news_seq")
@SequenceGenerator(name = "news_seq", sequenceName = "NEWS_SEQ")
public Integer getNewsId() ...

4. OpenJPA Build-time enhancement warning    forum.springsource.org

OpenJPA Build-time enhancement warning I am using OpenJPA build-time enhancement warning. When the server starts, I get: Code: WARN [main] openjpa.Runtime - An error occurred while registering a ClassTransformer with PersistenceUnitInfo: ...

5. Hibernate Weblogic override OpenJPA    forum.springsource.org

Hibernate Weblogic override OpenJPA I am using Spring 3.0.5, Hibernate 3.2.6.GA and deploying to Weblogic 10.3.3. My JPA configuration looks like this: Code: ...

6. Problem with code generated for 'char' column for openjpa    forum.springsource.org

Problem with code generated for 'char' column for openjpa After reverse engineering the following table: Code:

7. OpenJPA Load Time Enhancement    forum.springsource.org

Does anybody have a copy-and-paste example configuration for a JPA 2.0 EntityManagerFactory with OpenJPA 2.1.0, Spring 3.0 and Tomcat 6.x with Load Time Enhancement? The main point is load time enhancement, ...

8. Spring-data JPA example with OpenJpa    forum.springsource.org

Spring-data JPA example with OpenJpa Hello Masters, I could not integrate spring-data (last version) with openjpa 2.1. Following are configuration files: persistence.xml: Code: org.apache.openjpa.persistence.PersistenceProviderImpl com.att.tlv.infra.dal.persistence.domain.User

9. Portable sharding: DataNucleus & OpenJPA work, Hibernate doesn't    forum.springsource.org

Portable sharding: DataNucleus & OpenJPA work, Hibernate doesn't Hi all, I'm wondering if anyone can tell me why DataNucleus & OpenJPA work in my sample project (attached), but Hibernate fails. It ...





10. OpenJPA Support    forum.springsource.org

I know RC3 has no OpenJPA support. But shouldn't it just work? Or does every JPA implementation need a specific adapter for Spring? S.

11. OpenJPA and load time weaving    forum.springsource.org

OpenJPA and load time weaving I'm finally doing some concrete experimenting with OpenJPA and Spring. This is probably the last thing to solve before I have a succesful Wicket+Spring+OpenJPA example :-) ...

12. Help configuring OpenJPA with Spring Framework    forum.springsource.org

Dec 8th, 2006, 02:28 AM #1 prashantbhat View Profile View Forum Posts Private Message Junior Member Join Date Jun 2005 Posts 28 Help configuring OpenJPA with Spring Framework Hi , I'm ...

13. LoadTimeWeaver for OpenJPA    forum.springsource.org

Hi all, Where can I get a good description of why weaving is necessary and what the different weavers found in org.springframework.instrument.classloading.* do? Right now we're using OpenJPA and so far ...

14. OpenJPA and LoadTimeWeaver    forum.springsource.org

OpenJPA and LoadTimeWeaver Hi all, I am currently evaluating the use of OpenJPA together with Spring 2.x. I started to work based on the following blog post: http://blog.interface21.com/main/200...a-in-spring-20 Obviously I replaced ...

15. OpenJPA Exception in thread "main" org.springframework.dao.InvalidDataAccessApiUsageE    forum.springsource.org

OpenJPA Exception in thread "main" org.springframework.dao.InvalidDataAccessApiUsageE Please see the below log. I am not able to query the database. Code: 2007-05-27 20:07:24,312 DEBUG [org.springframework.jdbc.datasource.DriverManagerDataSource] - ...

16. Spring 2 + Tomcat 6 + OpenJPA    forum.springsource.org

Jul 2nd, 2007, 12:58 AM #1 quai83 View Profile View Forum Posts Private Message Junior Member Join Date Jul 2007 Posts 4 Spring 2 + Tomcat 6 + OpenJPA Hi, I ...





17. Spring Unit Test with OpenJPA + JNDI    forum.springsource.org

Jul 11th, 2007, 01:45 PM #1 zhijiang View Profile View Forum Posts Private Message Junior Member Join Date Jun 2007 Posts 12 Spring Unit Test with OpenJPA + JNDI I try ...

18. OpenJPA and load time weaving troubles    forum.springsource.org

OpenJPA and load time weaving troubles I currently having problems using the OpenJPA, Spring and Tomcat (5.5.23) combination. I have some persistent classes which are enhanced at build-time using PCEnhancer which ...

19. With OpenJPA Is LoadTimeWeaver required when entities are enhanced at build time?    forum.springsource.org

With OpenJPA Is LoadTimeWeaver required when entities are enhanced at build time? Hi, I'm using openjpa-1.1.0-SNAPSHOT-r420667:574398 and spring 2.0.6 in a desktop application and my emf configuration looks like this: Code: ...

20. [openjpa-1.0.0] persist() doesn't work while find() is OK    forum.springsource.org

[openjpa-1.0.0] persist() doesn't work while find() is OK Hi, I'm using openjpa-1.0.0 and spring-2.0.7 in Tomcat environment, but I'm trying it first in standalone desktop env. I wrote a AccountService class ...

21. SimpleLoadTimeWeaver and OpenJPA    forum.springsource.org

Hi, I am following this example http://blog.interface21.com/main/200...a-in-spring-20 and have replaced Toplink for OpenJPA. It does not seem to work with spring 2.0.7. If I do enhance the class files it works. ...

22. OpenJpa and Spring Tomcat Loadtime Weaving    forum.springsource.org

OpenJpa and Spring Tomcat Loadtime Weaving I have configured Spring Tomcat Loadtime Weaving according to the documentation for OpenJpa (... i think ;-) . I get the following Log messages: Code: ...

23. combining jaxb & openjpa objects    forum.springsource.org

Does anyone have any exerience combining the classes so that both technolgies can use 1 class? There is a little write up in the openJpa docs about it but not enough ...

24. OpenJPA 1.0.1 + Spring 2.5.1 + Tomcat6 - can't deploy entities    forum.springsource.org

(Solved - sort-of) OpenJPA 1.0.1 + Spring 2.5.1 + Tomcat6 - can't deploy entities Hello all, I am trying to get OpenJPA 1.0.1, Spring 2.5.1, and Tomcat6 to deploy an app ...

25. I need help on OpenJPA + Spring + Tomcat configurations    forum.springsource.org

Mar 4th, 2008, 01:10 AM #1 fenrir View Profile View Forum Posts Private Message Junior Member Join Date Apr 2007 Posts 29 I need help on OpenJPA + Spring + Tomcat ...

26. java.lang.IncompatibleClassChangeError with openJPA 'entityManagerFactory'    forum.springsource.org

Mar 25th, 2008, 02:29 PM #1 mickknutson View Profile View Forum Posts Private Message Visit Homepage Senior Member Join Date Jun 2005 Location Philly Posts 199 java.lang.IncompatibleClassChangeError with openJPA 'entityManagerFactory' I ...

27. TopLinkJpaVendorAdapter differs from Hibernate and OpenJpa Adapters?    forum.springsource.org

TopLinkJpaVendorAdapter differs from Hibernate and OpenJpa Adapters? Hey there, What I try to build is a Server, that offers Spring beans over RMI. Each Bean provides its own EntityManager with different ...

28. Eclipse RCP development problem with spring and openJPA: IllegalStateException    forum.springsource.org

Eclipse RCP development problem with spring and openJPA: IllegalStateException Hi, I'm just trying to develop an eclipse rcp plugin, the middle tear of which uses spring - openJPA managed persistence. I ...

29. Lazy loading with OpenJPA + Spring 2.5.5 not working:(    forum.springsource.org

Lazy loading with OpenJPA + Spring 2.5.5 not working:( Hi, We are developing a web application and planning to use Spring (2.5.5) + OpenJPA(1.2.0) in the data access layer. However there ...

30. OpenJPA BrokerFactory missing    forum.springsource.org

OpenJPA BrokerFactory missing Hi all, I'm trying out the openjpa JPA setup with spring and everything has worked out so far. The problem is that when I deploy my app to ...

31. Spring+OpenJPA+MySQL+Tomcat6 Data removing    forum.springsource.org

Spring+OpenJPA+MySQL+Tomcat6 Data removing Hi, I'm trying to configure OpenJPA. My configuration is below Code: ...

32. Spring + Plain JPA (OpenJPA) + Exception Translation    forum.springsource.org

Spring + Plain JPA (OpenJPA) + Exception Translation Hi All I'm trying to implement plain JPA in Spring as described here http://static.springframework.org/sp...rence/orm.html and in a few blogs I've been reading. I ...

33. Lazy Fetching with Spring & OpenJPA    forum.springsource.org

Lazy Fetching with Spring & OpenJPA Hello, I am trying to use Spring 2.5.5 in combination with OpenJPA 1.2.1. Fetching results (eagerly) and transactions work fine, but I am not able ...

34. Spring + Hibernate attempts to use openjpa    forum.springsource.org

Aug 12th, 2009, 03:58 AM #1 Priit View Profile View Forum Posts Private Message Junior Member Join Date Apr 2006 Posts 21 Spring + Hibernate attempts to use openjpa I have ...

35. Tests fail with openjpa provider    forum.springsource.org

Hello, mvn tests fail when i use openjpa as provider with version 1.0rc1. When i change the provider to Hibernate all tests run fine. I have created a very simple script ...

36. openjpa + jencks...    forum.springsource.org

looking at http://jencks.codehaus.org/Outbound+JDBC I was trying to use this config: Code:

37. No data written using JpaTransactionManager and openJpa    forum.springsource.org

No data written using JpaTransactionManager and openJpa Hello, I configured a (main) java application using JpaTransactionManager and openJpa. The database is an Oracle database. The application reads and writes simple data. ...

38. AbstractMethodException with OpenJPA 2.0-SNAPSHOT and Spring 3-RC1    forum.springsource.org

Oct 26th, 2009, 08:12 PM #1 domdorn View Profile View Forum Posts Private Message Junior Member Join Date Mar 2008 Posts 17 AbstractMethodException with OpenJPA 2.0-SNAPSHOT and Spring 3-RC1 Hi, I'm ...

39. Is OpenJPA 2.0 supported?    forum.springsource.org

Is OpenJPA 2.0 supported? I'm currently using OpenJPA 1.2.2 with Spring 3 and life is good. I'm contemplating an upgrade to OpenJPA 2.0 to pick up some JPA 2.0 functionality. Any ...

40. OpenJPA/Spring works fine with openjpa.Log, but using log4j gets "need java agent"    forum.springsource.org

OpenJPA/Spring works fine with openjpa.Log, but using log4j gets "need java agent" I have an app using Spring 2.5.6 and OpenJPA 1.2.2. It's working fine, but I'm currently setting my OpenJPA ...

41. Problem with PetClinic on Spring 3.0/Tomcat Using OpenJPA    forum.springsource.org

Problem with PetClinic on Spring 3.0/Tomcat Using OpenJPA [SOLVED] Trying to get the Pet Clinic sample working. Building with maven using the provided pom. Using the JPA data strategy, and I ...

42. spring 3.0.2 + openjpa 2.0.0 m3 does not work    forum.springsource.org

spring 3.0.2 + openjpa 2.0.0 m3 does not work I have a relatively simple project which I try to get it up and running. I want to try out openjpa slice ...

43. Custom persistence.xml & orm.xml w/OpenJPA & LCEMFB?    forum.springsource.org

Apr 28th, 2010, 06:58 PM #1 matthewadams View Profile View Forum Posts Private Message Member Join Date Jul 2005 Location Austin, TX Posts 85 Custom persistence.xml & orm.xml w/OpenJPA & LCEMFB? ...

44. Hibernate not inserting/comitting but OpenJpa does    forum.springsource.org

May 1st, 2010, 11:06 AM #1 michael.couck View Profile View Forum Posts Private Message Junior Member Join Date May 2009 Posts 5 Hibernate not inserting/comitting but OpenJpa does Hello all, I ...

45. OpenJPA, SimpleLoadTimeWeaver - doesn't work together    forum.springsource.org

Hi, When I try to run my application, following error appers in my logfile: Code: Caused by: org.apache.openjpa.persistence.ArgumentException: This configuration disallows runtime optimization, but the following listed ...

46. 1.1.0.M1 + Hibernate/OpenJPA problem    forum.springsource.org

1.1.0.M1 + Hibernate/OpenJPA problem Hi, after switching from Roo 1.0.2 to 1.1.0.M1 Hibernate starts throwing exceptions. For example in the following script Code: project --topLevelPackage com.example persistence setup --provider HIBERNATE --database ...

47. Exception Translation OpenJpa does'nt work (JSF+SPRING+OPENJPA+Glassfish V2)    forum.springsource.org

Jun 10th, 2010, 11:32 AM #1 ofeblas View Profile View Forum Posts Private Message Junior Member Join Date Jun 2010 Posts 1 Exception Translation OpenJpa does'nt work (JSF+SPRING+OPENJPA+Glassfish V2) Hi! I'm ...

48. BuildTime Enhancer For OPENJPA    forum.springsource.org

Thanks for reply Ben, I am using roo command like persistence setup --provider OPENJPA --database MSSQL --databaseName ***** --userName ****--password ***** It create persistence.xml with property My problem ...

49. Problem in OPENJPA    forum.springsource.org

Hello All, I configure a project with OPENJPA and SQL. Everything is going well but I am facing a problem for reference object. When I am saving main Object then OPENJPA ...

50. Ask about OpenJPA lazy fetch always null problem    forum.springsource.org

Ask about OpenJPA lazy fetch always null problem Dears I am new to OpenJPA, and currently I am using Spring 2.5 + OpenJPA, through Spring JpaTemplate, running on top of Tomcat ...