JPA 1 « JPA « Spring Q&A





1. Java Frameworks War: Spring and Hibernate    stackoverflow.com

My developers are waging a civil war. In one camp, they've embraced Hibernate and Spring. In the other camp, they've denounced frameworks - they're considering Hibernate though. The question is: Are there ...

2. Hibernate/Spring application - export to CSV    stackoverflow.com

I'm writing a web application using Spring/Hibernate that displays a report to a user, I would like to allow the user to export the results to a CSV file. Can anyone suggest ...

3. java screencasts for spring and hibernate    stackoverflow.com

I am a sql guy interested in learning OOP and Java but most of the books i read or come come across don't touch databases . Are there any screen casts available ...

4. Spring Framework    stackoverflow.com

What is Spring Framework? What's its contribution to Hibernate?

5. Areas of focus for a Java independent study?    stackoverflow.com

I have an independent study next semester and would like it to be something that applies to future job prospects. I've interned at a company for the passed several years that ...

6. Javax package and simple java application with spring hibernate    stackoverflow.com

in my attempt to learn a bit faster the use of spring and hibernate i read few chapter on books and created a simple java project from netbeans 6.7. I've decided to ...

7. MergingPersistenceUnitManager    stackoverflow.com

I have recently found your reply in a topic about using multiple persistence.xml files from multi module project. You said something about MergingPersistenceUnitManager. Could you please tell me where can I ...

8. Estimating a Spring/Hibernate project    stackoverflow.com

I am new to Spring framework. I was recently part of a Task where an estimation for a Spring/Hibernate based web application was being prepared. We had Functional & Business requirements ...

9. hibernate and spring persistance problem. Possible identity value not incremented?    stackoverflow.com

I am using hibernate 3.2.6, and spring 2.5.6 The database Im connecting to is: DB2 for Z OS 390 V8.1 When I run my testcase (below) I save the test file object. ...





10. Two EntityManagerFactories    stackoverflow.com

I want to have two EntityManagerFactories (org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean in this case), with each of them having their own data source and own set of persistent objects. So somehow I need to be able ...

11. Using Spring and Hibernate -final year project    stackoverflow.com

I’m planning to build Management Information System in Java for my final year project. I would like to use Spring and Hibernate, however I haven’t used any of these frameworks ...

12. With JavaEE6, do we still need Spring, Hibernate or other frameworks?    stackoverflow.com

Question as stated on title. Thank you.

13. Are there reasons why the java/spring/hibernate stack aren't popular in the web 2.0 space?    stackoverflow.com

I am really impressed with the java/spring/hibernate stack, and really want to dive in. Just curious, why are so many people using rails when java/spring/hibernate are tried and true? I guesss its because ...

14. Web based Report Designer Spring/Hibernate    stackoverflow.com

I am looking for a web based report designer supporting spring/hibernate. I have seen BIRTStudio but it is not free. I came across this list http://java-source.net/open-source/charting-and-reporting which could be ...

15. Choose 'better' or more familiar technologies for a new project?    stackoverflow.com

I am looking to start work on a brand-new project, something I've been thinking about for a while as my first independent sellable project. It's broadly speaking a web-based service application, and ...

16. Long running method causing race condition    stackoverflow.com

I'm relatively new with hibernate so please be gentle. I'm having an issue with a long running method (~2 min long) and changing the value of a status field on an ...





17. Change default polymorphism in Hibernate    stackoverflow.com

I'd like to set polymorphism="explicit" property to several hibernate mapping classes. is it possible to override the default implicit value, so that I do not need to set explicit in multiple ...

18. What could spring add to hibernate?    stackoverflow.com

I'm trying to build JSF application and I'm using hibernate as ORM solution. The problem is that I got my code full of replicate code

Transaction tx = null;
Session session = SessionFactoryUtil.getInstance().getCurrentSession();
try ...

19. Java, Hibernate,Spring    stackoverflow.com

I have 2 entities User and Status. I can load users list and can see its sql(log) in console

(select this_.id as id0_0_, this_.cl_point_id as cl2_0_0_, this_.date_ll ...

20. configure hibernate with spring    stackoverflow.com

I'm trying integrate spring with hibernate but catch NamingException: Context is read only stacktrace

WARNING: Could not bind factory to JNDI
javax.naming.NamingException: Context is read only
    at org.apache.naming.NamingContext.checkWritable(NamingContext.java:903)
    ...

21. How to define JPA?    stackoverflow.com

I have just joined a on going project based on spring framework. It usage hibernate as ORM system. and it is well integrated. I have learned a lot with this project. ...

22. What is 'weaving'?    stackoverflow.com

I've seen this term when read about how Spring works and I've just read the article about JPA implementation performance and it has the next statistics:

EclipseLink      ...

23. Spring 3.x and Hibernate Envers    stackoverflow.com

I'm having a problem getting Hibernate Envers to work in our environment. We are using Spring 3.x with LoadTimeWeaving. Below is our context file:

<context:annotation-config/>
<context:spring-configured/>
<context:load-time-weaver aspectj-weaving="autodetect"/>
<context:component-scan base-package="com.viridityenergy.vpower"/>
<context:property-placeholder location="classpath:db/database-test.properties"/>
<bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"/>
<bean class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor"/>

<bean id="dataSourcePooled"
  ...

24. How to turn on read-only in Hibernate?    stackoverflow.com

I am using Spring to create the SessionFactory:

    <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"
      p:dataSource-ref="dataSource">
    <property name="mappingResources">
       ...

25. Hibernate or JPA?    stackoverflow.com

With Spring 3.0 is it recommended to use hibernate or JPA.What are the advantages and disadvantages of both of them when used with Spring 3.0 ? Note : We are also suppose ...

26. Hot to call a stored routine/function from Spring/Hibernate?    stackoverflow.com

Is there a possibility to call a stored function (MySql Server) via Spring/Hibernate? The function gets two parameter (int, varchar(20)) and returns a varchar(255), I think there must me a possibility with named-query ...

27. jpa 2 and hibernate together + hibernate custom types + spring    stackoverflow.com

I have been successfully using the hibernate custom type with hibernate and spring. Now we are using JPA for new entities and hoping that hibernate can still support old hbm files ...

28. best practices for hibernate 3.6 and spring 3?    stackoverflow.com

any good examples of integrating the latest versions of hibernate and spring? template pros and cons?

29. How Spring and Hibernate with JPA enabled enterprise applications can be helpful to the business?    stackoverflow.com

I was asked this question in an interview. My answer was as follows. Spring makes Java/J2EE development easier, more efficient and more productive. Hibernate helps to get rid of complex and tedious ...

30. Spring and Hibernate for dummies    stackoverflow.com

I'm new to j2ee world. I have some experience in desktop development(C#) and web dev (zend framework, RoR). I'd like to dive in java world. So I'm looking for docs about

  • Hibernate ...

31. Spring/Hibernate changes needed to be done when porting an application developed from a 32-bit machine to a 64-bit machine    stackoverflow.com

I'd like to ask the following questions:

  1. Are there specific configuration settings (for Spring/Hibernate) needed to be done when porting an application developed from a 32-bit OS to 64-bit OS?
  2. Can all the ...

32. How to add Fixtures to Spring Hibernate project    stackoverflow.com

I'm trying to add fixtures / sample data to a Spring project which uses Hibernate as JPA. I've created a fixtures.sql file (in WEB-INF/classes/fixtures.sql) containing a bunch of SQL queries that I ...

33. I am confused with Hibernate Spring    stackoverflow.com

I am rookie into Java and I am directly thrown into Hibernate and Spring. I have attended some training classes and I am following documents online from random forums and trying ...

34. How to get JPA configured with Spring 3?    stackoverflow.com

I have been reading spring's documentation, but I must say it is a bit confusing, giving several different option on how to configure JPA. What is the best way, and how, to ...

35. what things to write in userDAO class in java spring hibernate    stackoverflow.com

I have domain class User with properties and getters Then i have userService class which contan all functions like addUser DeleteUser

public void register(User person) {
      logger.debug("Adding new Registration");
  ...

36. Tag system to replace categories in Spring - Hibernate java project    stackoverflow.com

Does anyone know how to go about designing tag system similar to the one used here, at stackoverflow? Any links that would explain on how to go about implementing this system ...

37. Which is Better: Hibernate or Spring? and Why?    stackoverflow.com

I am so confused between Hibernate and Spring framwork. I wanted to know that which one is better for my application and career development. Thanks.

38. Is making simple website in "java spring hibernate" is overkilling    stackoverflow.com

Initially i was php programmer and was using joomla to build websites . I could easily build good websites in joomla in few days. I was learning java spring hibernate for last ...

39. ajax to controller    stackoverflow.com

I want json array or ajax code for parse data jsp to controller

40. Strange behavior in Spring3 JPA and Hibernate    stackoverflow.com

Hi Friends I am getting this exception in my envt. and it is not fix when it will cause. I am using Spring 3, JPA and Hibernate and we use the EntityManager ...

41. how to use @SequenceGenerator in spring    stackoverflow.com

how to use @SequenceGenerator in Spring

42. Dilemma while using hibernate    stackoverflow.com

I'm using two tables for my current project(it will grow certainly). First table has like loads of columns i.e.

id|name|surname|age|token         |currentpackage|difference
1 |me  | you ...

43. Spring 3.0.5 and Hibernate 3.5.3 - wrong package reference?    stackoverflow.com

I am trying to use Spring 3.0.5 with Hibernate 3.5.3-Final and when Spring creates the session, it throws an exception:

java.lang.NoClassDefFoundError: org/hibernate/annotations/common/AssertionFailure
The issue is that the AssertionFailure class is actually ...

44. Spring Hibernate    stackoverflow.com

I'm getting this error:

org.hibernate.MappingException: Unknown entity: xxx.model.Application
However everything looks to be properly configured. Can anyone see if there is something I'm missing?
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <property name="location" value="file:/dctm/db.props"/>
</bean>

<bean id="xxxDataSource" ...

45. TransientObjectException    stackoverflow.com

Entity
@Table(name = "ADDRESS")
public class Address {

    @Id
    @Column(name = "ID")
    @GeneratedValue
    private int addressid;

    @OneToOne
  ...

46. Spring with JPA pure approch    stackoverflow.com

I have a problem with Spring and JPA. Basically I try to use JPA with Spring with a pure approach, or better, without explicit references in the code to Spring framework ...

47. Multi tenancy in Hibernate    stackoverflow.com

I am trying to add multi tenancy to a java application using the separate schema approach as outlined in this webinar I wanted to know how would i configure mulitple ...

48. Extjs + Spring + JPA + HIbernate    stackoverflow.com

We have Web application Extjs, Spring3.0, JPA, Hibernate. I have search page with single entity which working fine but yesterday I have added @manytoone in User Entity and application stop ...

49. Hibernate creating same PK?    stackoverflow.com

I have the following situation: Say I have an entity "Event" that contains a Set of "Place" entity objects with a @OneToMany mapping.

@Entity
public class Event {

   @Id
   ...

50. Issue while using EmbeddedDatabaseFactoryBean    stackoverflow.com

I am using spring/hibernate and trying to setup junit using HSQL DB. I ran into an issue when some of the oracle specific syntax are not recognized in HSQL. I know ...

51. Profiler for Java, Spring, Hibernate or generally Java code    stackoverflow.com

Possible Duplicate:
Please recommend a Java profiler
Where can I find a profiler tool or plugin to watch my java code performance?

52. what is the correct syntax for this    stackoverflow.com

        <bean id="ssoSessionFactory"
            class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
          ...

53. Spring Hibernate 4 support    stackoverflow.com

I am using Hibernate 4 CR1. My application was previously using Spring hibernate support (for version 3). I have not been able to find any information about this - is ...

54. Creating persistance layer with spring/hibernate    stackoverflow.com

I'm trying to create a persistance project so it can be re-used by some other projects I'm building on top. I.e it will be used by a web service/spring mvc project ...

55. java.lang.IllegalStateException    stackoverflow.com

I tried searching the forum for this error but could find one which answered my query. I am facing an error when i try to migrate from spring-hibernate xml to spring-hibernate annotation. ...

56. Problems using Spring Hibernate    stackoverflow.com

I've been using Spring JDBC with great success but I am having alot of trouble with this project. I'll post the code links here(it's just a small and silly project to ...

57. Using Spring Hibernate in FDA regulated software    stackoverflow.com

We are developing a diagnostic application using java, spring, hibernate and few other off the shelf libraries. According to FDA guidelines (and a consulting company ), open source libraries should be ...

58. Hibernate Many to Many Relations Set Or List?    stackoverflow.com

I have a many to many relationship at my Java beans. When I use List to define my variables as like:

@Entity
@Table(name="ScD")
public class Group extends Nameable {

    @ManyToMany(cascade = ...

59. Created new project with Spring and Hibernate    stackoverflow.com

Set up initial tables, for rudimentary login and "remember-me". However hibernate is failing to create tables based on my annotated classes ... and I can not understand why. Here are the ...

60. Basic hibernate persistance    stackoverflow.com

I have a mapped POJO which I need to persist. In that POJO I have another POJO, bound with foreign key.
Now, when I create a new object and persist it with ...

61. Show message tree like in livejournal (java)    stackoverflow.com

I am writing a forum using Spring MVC+Hibernate. Hibernate uses lazy initialization and to make it work i use OpenSessionInViewInterceptor and it works. There shouldn't be any problem with lazy initialization. I ...

62. I want to use CometD in Spring and hibernate?    stackoverflow.com

I want to use CometD in java and how to configure with spring and hibernate?

63. Issue with Spring Tx and Hibernate on RAD 7.0    forum.springsource.org

public class SaveUpdateDaoImpl implements SaveUpdateDao { private SessionFactory sessionFactory; private Logger log = Logger.getLogger(this.getClass()); public SaveUpdateDaoImpl(SessionFactory factory){ this.sessionFactory = factory; } @Override public void savePDFDoc(Form pdfform) throws DataAccessException { sessionFactory.getCurrentSession().save(pdfform); } ...

64. Problems with JPA    forum.springsource.org

Problems with JPA Hi, I am trying to do a OneToMany relationship between two entities. My JPA is working but for a child set that contains values from the child table ...

65. Hibernate JPA with @MapsId    forum.springsource.org

Jan 18th, 2011, 09:26 AM #1 amitkhanna View Profile View Forum Posts Private Message Junior Member Join Date Dec 2010 Posts 26 Hibernate JPA with @MapsId Hi I'm getting an exception ...

66. Spring and Hibernate doubts over docs    forum.springsource.org

Spring and Hibernate doubts over docs Hello, I am new to Spring and I was just reading the docs about Hibernate-Spring integration (version 3). I don't get why the automatic transaction ...

67. Unresolved compilation problems Spring + hibernate    forum.springsource.org

Jan 25th, 2011, 09:11 AM #1 khirb7 View Profile View Forum Posts Private Message Junior Member Join Date Jan 2011 Posts 1 Unresolved compilation problems Spring + hibernate Hello every body ...

68. WebWork Spring Hibernate    forum.springsource.org

Hi All, Is there a sample application on WebWork + Spring + Hibernate combo out there? There are sample applications that use WebWork + Spring or Spring + Hibernate together but ...

69. JSR 303 Hibernate question    forum.springsource.org

Hello I've got 2 questions: 1. Is it possible to get bean context if annotation is attached to field / method 2. Can I make (or mark) annotation that will work ...

70. Spring w/JPA and Hibernate    forum.springsource.org

Spring w/JPA and Hibernate I am using the OpenEntityManagerInViewFilter in a Struts2 web application. I have it configured with Hibernate. My actions are based on the ModelDriven interface so my prepare() ...

71. RememberMe and Hibernate    forum.springsource.org

RememberMe and Hibernate Hello, Ive got a working webapplication with Spring 3, Spring Security 3.0.5 and Hibernate 3, where users can login and logout. For login, I wrote my own UserDetailsServiceImpl ...

72. Problem with Hibernate and JPA    forum.springsource.org

Mar 15th, 2011, 08:04 AM #1 roboto View Profile View Forum Posts Private Message Junior Member Join Date Mar 2011 Posts 2 Problem with Hibernate and JPA I have problem with ...

73. JPA java.lang.IllegalArgumentException    forum.springsource.org

JPA java.lang.IllegalArgumentException Hi. I am getting the next exception when I try to save a register using the classes managed by JPA: ADVERTENCIA: java.lang.IllegalArgumentException: Object: co.com.colpatria.crm.dao.TbInfoPersonaNatural@53ca 8a is not a known ...

74. Spring + JPA + Multiple JPA Units    forum.springsource.org

Apr 1st, 2011, 09:45 AM #1 fedegaule View Profile View Forum Posts Private Message Junior Member Join Date Mar 2011 Posts 6 Spring + JPA + Multiple JPA Units Hi everyone, ...

75. Spring 3 Hibernate concurency issue    forum.springsource.org

Spring 3 Hibernate concurency issue Hi All, I have been struggling with a concurency issue for the last couple of days and I have to admit that it is starting to ...

76. Using hibernate 'List'    forum.springsource.org

Using hibernate 'List' hi guys I am using hibernate with SQL server 2005 database. I have three tables. The tables are Project PROJECT_ID (PK) Name Users USER_ID (PK) Fname Lname Project_Users ...

77. JPA + spring3 + hibernate    forum.springsource.org

JPA + spring3 + hibernate [/CODE] Here's my TelekanalDAO class Code: package com.karq.saatekava.server.dao; import javax.annotation.PostConstruct; import javax.persistence.EntityManagerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import com.karq.saatekava.shared.dto.TelekanalDTO; @Repository("telekanalDAO") public class TelekanalDAO extends JpaDAO { ...

78. From JPA to NOSQL    forum.springsource.org

From JPA to NOSQL Hello, I am trying to add a NOSQL data into my JPA-based application, following this tutorial. The entity I want to add, was befored modeled without NOSQL ...

79. how to combine spring with hibernate in an application?    forum.springsource.org

how to combine spring with hibernate in an application? hello friends..., i'm a biginner in "SPRING". i have done small example both in spring and hibernate seperately. now i have started ...

80. Too many SQLs issued by hibernate while runing thru spring    forum.springsource.org

Too many SQLs issued by hibernate while runing thru spring I am trying to figure out why there are so many SQLs when I use HibernateTemplate's find* methods. So, for example: ...

81. Problem with configurate Spring and Hibernate    forum.springsource.org

May 9th, 2011, 03:28 PM #1 donpedro767 View Profile View Forum Posts Private Message Junior Member Join Date May 2011 Posts 4 Problem with configurate Spring and Hibernate Hello I really ...

82. Using home classes of Hibernate    forum.springsource.org

Hi, I use the reverse engineering with hibernate, everything works well with classes but I wanted to add the class home generated automatically with hibernate tools and use its methods. this ...

83. Negative numbers are created by hibernate sequences with Spring.    forum.springsource.org

Negative numbers are created by hibernate sequences with Spring. Hi I have a hibernate object for which i am using the sequence generator.. as follows Code:

84. Hibernate Issue    forum.springsource.org

Hibernate Issue Hi All, I am trying to get hibernate+spring work but I am having difficulty. Any help is much appreciated. Following is the error that I get: 11:31:45,557 WARN [JDBCExceptionReporter] ...

85. Spring 3 + JPA 2    forum.springsource.org

Jun 2nd, 2011, 04:34 PM #1 faisal abdul aziz View Profile View Forum Posts Private Message Member Join Date May 2006 Posts 35 Spring 3 + JPA 2 Hi Guys, I ...

86. CannotLoadBeanClassException: Hibernate in a Equinox Bundle    forum.springsource.org

Hello! I'm developing a modular application. I have a Web client that runs and a server side. On server side I would like to integrate Hibernate. However I have a problem ...

87. Hibernate problem    forum.springsource.org

Hibernate problem I am new to raw hibernate (no JPA), so I am trying to do some AnnotationConfig programmatic configuration.. Alas, I get Code: Exception in thread "main" org.hibernate.HibernateException: /hibernate.cfg.xml not ...

88. Unable to locate Spring NamespaceHandler for spring-jpa.xsd    forum.springsource.org

Unable to locate Spring NamespaceHandler for spring-jpa.xsd I am running Spring Data JPA with Helios and Tomcat and I am getting an error message when trying to run the tomcat server ...

89. facing problem with hibernate    forum.springsource.org

facing problem with hibernate Hi, In my Real Project i got a problem, in userupdate jsp this page i try to display the two deferent tables list of user_details and Languages ...

90. Hibernate 3.0    forum.springsource.org

Does anyone know when Spring will support Hibernate version 3.0? Or if there is a way to make the current spring work with the new hibernate? Hibernate 3.0 changed it's package ...

91. Spring JPA Persistance problem    forum.springsource.org

Spring JPA Persistance problem I am new to Spring and JPA. I tried to integrate Spring and JPA and facing many a iaaues and not able to successfully run the code. ...

92. Spring 2.5.6 Compatibility With Hibernate 3.6.5.Final    forum.springsource.org

Spring 2.5.6 Compatibility With Hibernate 3.6.5.Final Hi there, Please forgive me if I'm missing something that I should pick up by reading the respective manuals, but is Spring 2.5.6 compatible with ...

93. Hibernate 4 support?    forum.springsource.org

What is the outlook for spring support of Hibernate 4? If I find some issues while integrating Hibernate 4 could those potentially be targeted for Spring 3.1? Or is Hibernate 4 ...

94. Spring 3.0 Open JPA 2.0 in WAS 7.0 issue    forum.springsource.org

Jul 21st, 2011, 02:08 AM #1 sivruser View Profile View Forum Posts Private Message Junior Member Join Date Jul 2011 Posts 1 Spring 3.0 Open JPA 2.0 in WAS 7.0 issue ...

95. JPA facet rejects Hibernate library    forum.springsource.org

JPA facet rejects Hibernate library I'm using STS 2.7.1 and I'm trying to add the JPA facet to a dynamic web project. I select Platform: Generic 2.0 and a User Library ...

96. Specification works on JPA 1.x?    forum.springsource.org

I have made the test case of specification works on jpa 1.x ------------------------------------------------------------------------------------------------------------------------------------- Boost your business using Open Source Qin HongSheng [Richard] Solution Architect for OpenSource -------------------------------------------------------------------------------------------------------------------------------------

97. pom for a spring+hibernate project    forum.springsource.org

pom for a spring+hibernate project Hello everybody, I am learning the integration of Spring and Hibernate, and afterwards also JSF. I am wondering whether there is a pom with the dependencies ...

98. Hibernate coniguration    forum.springsource.org

Aug 16th, 2011, 08:00 AM #1 deja-mar View Profile View Forum Posts Private Message Junior Member Join Date Jul 2011 Posts 2 Hibernate coniguration I have posted this on Hibernate forums ...

99. Spring + hibernate    forum.springsource.org

Spring + hibernate hello i'm using the latest version of the two framworks Spring & Hibernate to build a dynamique web site so when i want to run the test of ...

100. hibernate jpa with spring    forum.springsource.org

Hi everyboby, I am having problems finding an up to date tutorial/doc, with the integration of these technologies as they are nowadays. Can anyone point me to a documentation? So many ...