Hibernate Mapping One-to-One using Annotations
Hibernate Inheritance: Table Per Class Hierarchy (Annotation & XML Mapping)
Welcome to Hibernate Tutorial Series. In previous tutorials we saw how to implement Relationship Mapping in Hibernate. We saw different mapping techniques like One to Many, Many to Many using both Annotations and XML mapping. Today we will see how the Inheritance is managed in Hibernate. You may want to look at previous tutorials. Here is the complete list for you.
Hibernate Mapping Many-to-Many using Annotations
Learn how to do many-to-many mapping using hibernate annotations.
Hibernate Mapping Many-to-One using Annotations
Find out how to to do many-to-one mapping using hibernate annotations.
Hibernate Mapping One-to-Many using Annotations
See how to do one-to-many mapping using hibernate annotations.
Hibernate Mapping Component using Annotations
Component mapping using hibernate annotations.
Hibernate Annotations Tutorial
A simple tutorial on Hibernate Annotations: how to create a simple example using the Hibernate Annotations.
Hibernate Mapping Many-to-One
Learn how to do many-to-one mapping using hibernate.
JPA is the new Hibernate-like persistence specification that has become part of the Java EE 5 spec itself. JPA uses Java 5 annotations to control how plain Java classes (POJOs) get mapped to database tables. The MyEclipse tooling for JPA offers powerful generation and automation in the form of mapping existing DB tables directly to generated POJOs that are ready to be used against that database. MyEclipse also offers additional features for JPA in the Java source editor with reference to the annotations used to annotate the entities. MyEclipse will provide validation and autocomplete against the DB resources that the POJOs are referencing.
Hibernate Mapping One-to-One
Learn how to do one-to-one mapping using hibernate.
Hibernate Mapping One-to-Many Tutorial
How to do one-to-many mapping using hibernate.
Developing Applications with JBoss and Hibernate
Developers will be introduced to Hibernate and learn to build Java classes and map files from scratch. They will also learn to reverse engineer the database schema into Java classes and Hibernate mapping files and build a web application that will be able to interact with the Hibernate POJOs which they will later deploy to JBoss AS.
Hibernate Mapping Tutorial
In this tutorial you will learn how to do many-to-many mapping in hibernate.
Hibernate Mapping Component
Find out how to do component mapping using hibernate.
In this first article I'll explain the purpose of metadata and demonstrate how to use metadata annotations provided in the core J2SE libraries.
In the second article, I'll show how to write your own annotations (first writing simple ones like @Copyright and then looking at more advanced annotations like those built into the core language).
In the third article, I'll demonstrate how tools can use annotations at build-time (generating new source or supporting files) and how programs can use annotations at runtime (to change code behavior).
Use Hibernate to implement mapping from Java type to SQL type
Through this tutorial, developers will be able to see how Hibernate provides built-in types that map to SQL database types. Readers will also be shown how Hibernate allows them to implement and use custom types when these built-in types do not satisfy the application's requirements, or when they want to change the default behavior of a built-in type. Developers will also learn to implement a custom-type class and then use it in the same way as a built-in one. (pdf file, install Acrobat Reader to read this tutorial)
Java Annotations and Reflection
This tutorial describes how to define your own annotations and how to use Java reflection to analyze your code with it. Annotations provide data about a class that is not part of the programming logic itself. They have no direct effect on the code they annotate. Other components can use this information.
Tutorial Using the Java Persistence API (JPA)
This tutorial is located within the download bundle under entitymanager and illustrates:
1) using annotations to provide mapping information
2) using JPA
This tutorial shows a simple example using Hibernate. We will create a simple Java application, showing how Hibernate works.
Hibernate Example using Hibernate Tools
Learn how to create a simple example using the Eclipse IDE and Hibernate Tools plug-in.
Implementing many to one entity relationship using JPA
Here we used JPA to implement the scenario. We have manager class to operate over the entity classes and some java test clients. The classes are self explanatory. Please note the persistence annotations, particularly the ones that used for relationship. As for the persistence provider, we used Hibernate. The DDL for the entities on the back end database tables are given below...