jQuery in Action, 3rd edition
The moose likes Blog around the Campfire and the fly likes Simple Hibernate Example with Inner Classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Other » Blog around the Campfire
Bookmark "Simple Hibernate Example with Inner Classes" Watch "Simple Hibernate Example with Inner Classes" New topic

Simple Hibernate Example with Inner Classes

Christopher Rygaard
Ranch Hand

Joined: Feb 22, 2014
Posts: 42
Simple Inner Class Example

This is the simplest stand-alone example of inner classes in Hibernate that I could cook up.

This example is very similar to the Container example I posted earlier. The only substantive difference is that the Container class and the Contained class are inner classes in HibernateExample.java.

The only trick to this example is that the inner classes must be declared static. Other than that, Hibernate just sees the inner classes as ordinary classes, and there really is nothing to this example. Sorry it's so boring, but this example answered questions I had about Hibernate and inner classes, so I suppose somebody else might have similar questions.

Notice: This is provided with no warranty whatsoever. Use at your own risk.

This is the example:
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Simple Hibernate Example with Inner Classes
It's not a secret anymore!