Top "Jpa" questions

The Java Persistence API (JPA) is a Java specification for accessing, persisting, and managing data between Java objects/classes and a relational database.

Spring JPA selecting specific columns

I am using Spring JPA to perform all database operations. However I don't know how to select specific columns from …

java jpa spring-data-jpa
How to store Java Date to Mysql datetime with JPA

Can any body tell me how can I store Java Date to Mysql datetime...? When I am trying to do …

java mysql datetime jpa
What is difference between CrudRepository and JpaRepository interfaces in Spring Data JPA?

What is the difference between CrudRepository and JpaRepository interfaces in Spring Data JPA? When I see the examples on the …

java spring jpa spring-data spring-data-jpa
Spring boot - Not a managed type

I use Spring boot+JPA and having a problem while starting the service. Caused by: java.lang.IllegalArgumentException: Not an …

spring spring-mvc jpa spring-boot spring-data
Adding IN clause List to a JPA Query

I have built a NamedQuery that looks like this: @NamedQuery(name = "EventLog.viewDatesInclude", query = "SELECT el FROM EventLog el WHERE …

java jpa jpql
How to call a stored procedure from Java and JPA

I am writing a simple web application to call a stored procedure and retrieve some data. Its a very simple …

java sql stored-procedures jpa jboss
How to persist a property of type List<String> in JPA?

What is the smartest way to get an entity with a field of type List persisted? Command.java package persistlistofstring; …

java orm jpa
How to view the SQL queries issued by JPA?

When my code issues a call like this: entityManager.find(Customer.class, customerID); How can I see the SQL query …

java jpa
@UniqueConstraint annotation in Java

I have a Java bean. Now, I want to be sure that the field should be unique. I am using …

java jpa unique-constraint
Transaction marked as rollback only: How do I find the cause

I am having issues with committing a transaction within my @Transactional method: methodA() { methodB() } @Transactional methodB() { ... em.persist(); ... em.flush(); …

java spring hibernate jpa transactions