I am using Hibernate implementation of JPA. Let's say I have a list of objects which I have to persist in a table called Event. All these objects have the same
this is my code package com.examplesector.choosesectors.models.Entity; import lombok.*; import javax.persistence.*; import javax.validation.constraints.Size;
I have two tables, joined each other. How I can get from database both of them using Spring data jpa? Code as below, @Entity @JsonNaming(PropertyNamingStrategie
I have simple definition of my entities, but what i do wrong, because i can not get any entity UserInfo and receive only error (could not load an entity: [UserI
I have a simple properties tag creating a uniqueness constraint. <properties name="uniqueness_constraint" unique="true" update="true"> <property n
Basically I have the system where there is entity called Dictionary, where all dictionary entries are stored (like countries in example below), these entries ar
I am trying to learn Hibernate to create on startup the Db from entities, but I have only found articles suggesting how to implement many to many relationship w
Netbeans does not show the hibernate.cfg.xml configuration file in the Configuration File drop-down menu of the New Hibernate Reverse Engineering Wizard window,
I am trying to generate changelog based on DB and Entity class My Liquibase properties file is as follows `url=jdbc:h2:mem:testdb changeLogFile=classpath:/db/ch
I have a base entity not intended to be audited: @Data @MappedSuperclass @EqualsAndHashCode(of = {"id"}) public abstract class BaseEntity implements Serializabl
Spring Data JPA: how to make one to one relationship with SQL Server JSON column? Class EntityA { long id; @Type(type = "json") @Column(columnDefinition =
I want a row in hibernate that only takes ("yes","no"," "), how can I map it? Something like an ENUM type in SQL but mapped in Hibernate
I have an auto-increment PK in a table and I want hibernate to handle id assigning instead of database. As my understanding the @GeneratedValue(strategy = Gener
So, I want to customize the ID for a "FriendID" with IdentifierGenerator, and I want to make it as simple as possible first just to make sure it works. Been wat
We are using Hibernate in our Spring Boot application. Whenever we can, we use @javax.annotation.Nonnull and @javax.annotation.Nullable annotations to help us a
I have a class Health Check - as part of the class I record how many parasites are seen (enum NONE, SOME, MANY) and also the location of the parasites (enum HEA
I have a software which used java, ejb, hibernate and wicket. After I changed hibernate.criteria.literal_handling_mode on "bind" I get some exceptions in criter
I have the following code: The User is a Hibernate domain. for(User user : users) { try { function() //log the user
I'm having a big problem that a few rows of the table are not returning by the native query of hibernate (Spring Data), although if I put the same query in the
I have a problem with the persistence in a java web application. We use Ninjaframework (6.8.1) which uses Guice as dependency injection framework and for persis