Skip to content

alexspurling/hibernate-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hibernate test project

This is a project to test the apparently simple case of mapping two entities that have a one to one relationship. In this example we have two entities Person and Address and a schema with two corresponding tables:

Person
id
first_name
last_name
Address
person_id
street
town
postcode

Running the project

To run this code, you need to have Maven and Mysql installed.

First, set up the test user and database by running the following commands in mysql:

create user 'testuser'@'localhost' identified by 'password';
create database hibernatetest;
grant all on hibernatetest.* to testuser@localhost;

Then, run:

mvn clean test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages