permaculture playing cards*
The moose likes Blog around the Campfire and the fly likes Simple Hibernate Example with Final Classes and Final Methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Blog around the Campfire
Bookmark "Simple Hibernate Example with Final Classes and Final Methods" Watch "Simple Hibernate Example with Final Classes and Final Methods" New topic
Author

Simple Hibernate Example with Final Classes and Final Methods

Christopher Rygaard
Ranch Hand

Joined: Feb 22, 2014
Posts: 42
    
    3
Well, this is a big non-example.

For various reasons that have nothing to do with this forum, I need to make my classes and methods final. I was wondering if Hibernate could handle that, so I created this example to test it out. Hibernate handles it just fine, with no special support.

This is identical to my inner classes example, except everything in the persistent classes is declared final. I didn't have to do anything to get Hibernate to work with it.

It wasn't clear to me whether Hibernate would handle finality, so I put this example together to answer the question. Perhaps somebody else will have the same question, and will find this useful.

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

This is the example:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Simple Hibernate Example with Final Classes and Final Methods
 
Similar Threads
Simple Hibernate Container Example
Simple Hibernate Eager Loading Example
Simple Hibernate Example with Inner Classes
Simple Hibernate Lazy Loading Example
Simple Hibernate Cascade Save Example