Top "Jpa-2.1" questions

This tag is for questions specifically about new features of version 2.1 of the Java Persistence API.

JPA Query selecting only specific columns without using Criteria Query?

Is it possible to select, say, only properties A and B from an object using a JPA query without using …

java jpa jpa-2.0 jpa-2.1 criteriaquery
org.hibernate.QueryException: illegal attempt to dereference collection

I am trying following hql query to execute SELECT count(*) FROM BillDetails as bd WHERE bd.billProductSet.product.id = 1002 AND …

hibernate hql jpa-2.0 dereference jpa-2.1
JPA support for Java 8 new date and time API

I'm using Java 8 for my new project. I'm trying to use new date and time api in java 8 however I …

java jpa java-8 jpa-2.1 java-time
How to specify JPA 2.1 in persistence.xml?

A quick search on the Net reveals three or four variants how folks have been specifying xmlns and xsi:schemaLocation …

java jpa jpa-2.1 persistence.xml
Supported source version RELEASE_6 from annotation processor org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor less than source1.7

I have an enterprise application running in the following environment. Mojarra 2.2.7 PrimeFaces 5.0 final PrimeFaces Extension 2.0 final OmniFaces 1.8.1 EclipseLink 2.5.2 having JPA 2.1 …

jakarta-ee jpa eclipselink java-ee-7 jpa-2.1
Passing List<Integer> in spring data jpa native query

Using spring data JPA, I am trying to make this sort of query (it is more complex, this is a …

jpa jpa-2.0 spring-data-jpa jpa-2.1
Getting error Could not locate appropriate constructor on class

I am trying to map native SQL result to my POJO. Here is the configuration. I am using spring. <…

spring-data-jpa hibernate-4.x jpa-2.1
JPA 2.1/Hibernate 4.3 deprecation warning

I'm using JPA 2.1 sample application with Hibernate 4.3.x implementation. <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.1" xmlns="http://…

java hibernate jpa jpa-2.1
What is the best way to bulk delete rows in JPA while also cascading the delete to child records

I'm trying to do bulk delete in my entities, and the best solution will be to go with CriteriaDelete. But …

java jpa eclipselink jpa-2.1 bulk-delete
Entity Table is not creating using JPA 2.1

I am using JPA 2.1 in Netbeans to create my entity. If my database has no table then it should create …

java jpa netbeans ejb-3.0 jpa-2.1