Win a copy of The Career Toolkit this week in the Jobs Discussion forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Simple Hibernate Example with Final Classes and Final Methods

 
Ranch Hand
Posts: 42
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic