Tag Archives: Hibernate

Mapping collection of simple type in JPA using @ElementCollection

JPA framework provides good support for mapping collections of value types. The value types can be either simple types like Integer or String, or custom embeddable types. In this short post I would like to present two most popular mappings … Continue reading

Posted in Database, JPA | Tagged , , | Leave a comment

Database schema creation in JPA using SQL scripts

Recent versions of JPA provide a feature to automatically create the database objects (like tables, sequences or indexes), load initial data into database on application deployment; and also remove them after the application is undeployed. All that is needed is … Continue reading

Posted in Hibernate, Java, Java EE, JPA | Tagged , , , | Leave a comment

Integrating Hibernate with Spring

When building a web application, we will sooner or later need to somehow store data entered by users and retrieve it later. In most cases the best place to keep such data is a database because it additionally provides many … Continue reading

Posted in Hibernate, Java, Java EE, Spring | Tagged , , , , , | 1 Comment

Using JPA and JTA with Spring

When building a web application, we will sooner or later need to somehow store data entered by users and retrieve it later. In most cases the best place to keep this data is a database because it additionally provides many … Continue reading

Posted in Java, Java EE, JPA, JTA, Spring | Tagged , , , , , , | 15 Comments