Skip to content

daliasheasha/HibernateApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HibernateApp

A Hibernate/JPA application used in this video.

  • If you want to setup a similar live template to the "jpa" template I use in the video, instructions on setting up live templates is here. The "jpa" live template is configured with the following content:
EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory("$PERSISTENCEUNIT$");
EntityManager entityManager = entityManagerFactory.createEntityManager();
EntityTransaction transaction = entityManager.getTransaction();
try {
    transaction.begin();
	
    $END$
	
    transaction.commit();
} finally {
    if(transaction.isActive()) {
        transaction.rollback();
    }
    entityManager.close();
    entityManagerFactory.close();
}
  • If you're wondering how I setup the MySQL Docker container, I wrote my steps here.

JetBrains team project

About

Hibernate application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages