spring-orm Questions

20

Solved

I created an application with spring + hibernate, but I always get this error. This is my first application with hibernate, I read some guides but I can not solve this problem. Where am I doing wro...
Consumedly asked 5/10, 2014 at 14:19

7

Can anybody explain what is the difference between the Spring Framework's LocalContainerEntityManagerFactoryBean and LocalEntityManagerFactoryBean?
Mancy asked 27/5, 2011 at 19:28

4

Solved

Although not novice, I am trying to learn spring framework (again!) in order to be sure that I really understand this. I have got fair idea on core Spring (DI). Now, I am focusing on Data layer. I...
Peace asked 3/5, 2016 at 19:7

4

Solved

Hi I have just started using Spring , with Hibernate4 and maven. Basically my class hierarchy is HUmanMicroTask extends from MicroTask . In future there may be several other classes extending from ...
Embolic asked 23/8, 2012 at 7:48

1

Solved

I've created user and userRole tables user entity @Entity @Table(name = "USERS") public class User { @Id @Column(name = "USERNAME", nullable = false, unique = true) private String username; ...
Bria asked 26/3, 2019 at 8:1

2

Solved

I have 2 separate databases and I am trying to access them in repositories. Unfortunately I am receiving the following exception. Things I have tried have tried making one of the bean as Primar...

3

Solved

I want to return the max value using QueryDSL. With this query I return the interval which eventid is equal to id and it is working properly. QInterval interval = QInterval.interval; JPAQuery que...
Clute asked 10/12, 2015 at 12:8

5

Solved

I was going through data access technologies supported by Spring, and I noticed that it mentions multiple options and I am not sure about the difference among them: Spring-DAO (http://docs.spring...
Stodge asked 28/7, 2014 at 7:29

2

Solved

I am trying to analyze a situation where I have two classes. One class is ProcessImpl which is starting point and internally calls other child transactions.I dont know whats going wrong. The proces...
Northerly asked 14/9, 2017 at 8:47

2

I am trying to use Hibernate 5 (5.2.11) together with Spring ORM. Following tutorials I came up with following configuration: Spring Bean <bean id="sessionFactorySettings" class="org.springfr...
Precipitant asked 16/9, 2017 at 15:35

2

Solved

In a Spring JPA + Hibernate environment I need to enable Hibernate entity filters. So I should have access to Hibernate Session object, but I'm using EntityManagerFactory and Spring JPA magics. The...
Selenite asked 26/8, 2015 at 13:29

0

I've created a small project which combines Spring Data, a JPA Repository, EJB/CDI and either Wildfly Swarm or plain Wildfly. The REST resource (an EJB) calls a CDI bean which has a Spring Data J...
Fillet asked 15/12, 2016 at 22:8

2

Let me make my understanding clear for second level cache. There is a query in base class of my web application. This query is called for almost every action (I am using Struts and this is how appl...

7

I have configured composite primary key for my entity Employee as follows Employee.java: @Entity @Table(name="employee") @Proxy(lazy=false) @IdClass(EmployeeId.class) public class Employee implem...
Leonleona asked 27/7, 2016 at 13:1

1

Solved

Latest Hibernate ORM release (5.2.0) renders Spring ORM (4.2.6, latest) incompatible because Hibernate had to rename its Session.getFlushMode to Session.getHibernateFlushMode resulting in this NoSu...
Damali asked 3/6, 2016 at 9:35

2

Solved

I'm trying to include a changes tracker to my JPA Entitys (to a log file, not a database) however the changeSet returned by my DescriptorEventAdapter is always null. I'm using EclipseLink 2.5.2, oj...
Bolshevik asked 22/2, 2016 at 14:19

1

There is no support for ibatis in Spring4.2.0. MY project is upgrading from Spring 3.2.4 to Spring 4.2. As i googled, i found spring4.2 integration examples with mybatis but not with ibatis. Can s...
Ebracteate asked 2/9, 2015 at 12:32

2

Solved

In this question I am working with Hibernate 4.3.4.Final and Spring ORM 4.1.2.RELEASE. I have an User class, that holds a Set of CardInstances like this: @Entity @Table public class User impleme...
Castilian asked 6/7, 2015 at 22:51

1

Important note: this has been accepted as a Spring issue with a target fix version of 4.1.2. My goal is to achieve O(1) space complexity when generating an HTTP response from Hibernate's Scrollab...
Transmittance asked 12/10, 2014 at 10:23

3

Solved

I'm new to Spring this is my first example (JSF 2, PrimeFaces 3, Spring & Hibernate Integration) here's the pom.xml : <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://w...
Agony asked 27/1, 2013 at 14:44

3

Solved

What is the relation between hibernate @version and ManyToOne Mapping. Assume that i am having two tables Department and Employee. Here is Deparment is the master table and Employee in the detail ...
Platysma asked 24/9, 2013 at 13:25

1

Solved

Assume i have two packages com.test1 and com.test2 in different modules called M1 (com.test1) and M2 (com.test2). Now in the following example i configured module1 package. <bean id="entityMa...
Fumble asked 12/11, 2014 at 12:17

1

I have written a sample Spring Hibernate application o understand how Spring hibernate integration works. Here is my applicationContext.xml <beans xmlns="http://www.springframework.org/schema/...
Aquinas asked 11/1, 2014 at 20:12

2

Solved

I have just migrated Spring 3.0.5 to 3.1 GA. I faced runtime error during initialization: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframewor...
Ist asked 14/12, 2011 at 7:14

3

Solved

I am writing an application that has typical two entities: User and UserGroup. The latter may contain one or more instances of the former. I have following (more/less) mapping for that: User: pub...
Hardwood asked 24/9, 2012 at 19:3

© 2022 - 2024 — McMap. All rights reserved.