I have some struggles in translating a well working typedQuery to a pure JPA 2.0 criteriaQuery :/ Following my working typedQuery:
Yesterday when I was working on my JavaEE application, it was happily getting deployed to Glassfish 3.1 and all the [web, ejb, jpa] engines were working and I was able to interact with database withou
I am trying to use c3p0 as connection pool provider in my application (jpa 2 and hibernate core 3.3.2)but c3p0 getting too much connection from database.This is same problem but answer not helped.I am
i have a app that uses Spring,Struts, Hibernate and JPA. So i have two entities, Company and Location. Company is in oneToMany relation with Location, and location in ManyToOne to Company.
I am trying to create a named-native-query that returns a Long. Here is my orm.xml file (simplified as much as possible)
I have the usual parent - child OneToMany relationship: @OneToMany(mappedBy = \"mapType\", cascade = CascadeType.ALL, orphanRemoval = true)
This is with EclipseLink via JPA, where I let it create the tables for me.The back end data base is Derby for development mode, and I expect to use MySQL or something else for deployment.
I\'m working on migrating some code that has two entities (Progress and PerformanceRating) that are related by a many-to-many relationship.Each PerformanceRating has multiple Progress and each Progres
I have migrated an app from a full-Hibernate featured one to a JPA/Hibernate based-one and I have a problem with my JPA mapping.
I can\'t map query result to POJO. JPA executes query ok (it trace in logs) but in mapping process throws a NPE.