I have user which have: id, username,password, tokenExpires which is Date. When i generate token i generate a string, how to check if token is not expired?
I have a server mistake: > ERROR [http-nio-8080-exec-5] > org.hibernate.internal.ExceptionMapperStandardImpl.mapManagedFlushFailure > HHH000346: Error
In my JavaFx project I use Hibernate to connect to a local Postgresql database. In Intellij the project runs and the connection works. Also when I start the for
@Embeddable public class AccountTransactionId implements Serializable { private String trxDate; private String acctNo; private int trxNo; } @Entity
During attempt to create HibernateSession application fails with exception: Caused by: java.sql.SQLException: Unknown initial character set index '255' re
I have Maven project with Hibernate/Spring/MySQL. I have basic entity and I want Hibernate to create tables automatically, but Hibernate doesn't create any tabl
I am trying to achieve below native query logic using hibernate (Spring JPA). But save(Iterable) throws exception and rollback the entire transaction if one of
Recently I found it not necessary to call repository.save() if within a @Transactional block. Hibernate / Spring-JPA will update row automatically when exiting
"Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister " I am not using any maven or such tools and manually add and reference
I'm working on presentation in which I would like to show difference in number of executed sql queries between deleteByPost() method with and without custom que
I am trying a simple program with hibernate but while retrieving data from db i am getting this error. But the insertion is working fine. I have provided the
I set two parameters to disable auto commit by False but save operation on entity without transaction was committed. spring.datasource.hikari.auto-commit=false
I know that @JoinColumn is used for creating the foreign key column, but my question is little bit another. I noticed that if I have main entity with mapped by
So I'm using Hibernate's annotations @CreationTimestamp and @UpdateTimestamp. It works fine, but I have this case when unit testing where I need to create objec
There's chapter 10 in the book "Pro JPA 2 in Java EE 8", section called "Multiple Mapped Attributes", there the well-known department-project example using @IdC
I am trying to have a abstract common class for all my entity. Here is my Entity class and abstract class:- @Entity @MappedSuperclass @Table(name="TBL_EMPLOYEE
When calling the following method 10 times there are 11 open sessions on the database: public void readHsql() { SessionFactory sessionFactory = getSessi
I have a 3rd party jar that holds all the entities and mapping. I am currently using this jar successfully in a classic Spring-MVC application, but now I am t
No qualifying bean of type 'javax.persistence.EntityManagerFactory' available whike upgrading SpringBoot from 2.1.18.RELEASE to 2.6.2 @ConditionalOnProperty("sp
Creating a spring mvc project with database using java configuration . The application gives error for tables operation like create, drop, alter operation for