I have spring web app (JPA/Hibernate + MySQL). I have two DAO classes. CustomerDAO @Entity @Table(name = "customers") public class Customer { @Id @Column
I'm using OneToMany mapping for two classes MasavNew and MasavRow : @Entity @Table(name = "ArgoCHFileHdr") public class MasavNew { @OneToMany(fetch = Fetch
Used a simple InnoDB MySQL database (many to many relationship between WRITER and FORUM, and a join table named writer_forum) in Netbeans 7.1 and created a Java
Having strange performance issue using Hibernate 3.3.2GA behind JPA (and the rest of the Hibernate packages included in JBoss 5.) I'm using Native Query, and a
We use Hibernate through JPA and Spring to manage object persistence in our web application. We use open-session-in-view pattern to create sessions for threads
How to invoke order by on a joined entity? I am trying to achieve the following with: select * from person p inner join telephone t on p.id=t.person_id join si
while starting with spring rest I got following error as > org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'jpaM
I'm trying to do simple thing, save with Hibernate enum value as string. My mapping looks like this: @Entity @Table(name = "CONTRACTOR") public class Contracto
I have a problem with drools flow persistence (MySQL), I get the following exception: 2011-04-15 14:38:27,244 INFO [STDOUT] (http-0.0.0.0-8000-5) Hibernate: i
I'm using JPA and I get all elements from DB in this code: factory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME); EntityManager em = factory
Why am I getting this exception? package com.domain.idea; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.Fetc
I'm developing Spring boot project, using JPA. What I wanna know is repository.findById(id) method returns null, whereas data is available in the DB. Functions
I have a web application that uses spring, hibernate and JPA. When I want to run my DAO unit tests, I get the following error: Caused by: org.springframewo