This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Hibernate without POJO's Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate without POJO Watch "Hibernate without POJO New topic

Hibernate without POJO's

Ram Chhabra
Ranch Hand

Joined: Jan 07, 2008
Posts: 48

Can we use Hibernate without making POJO's.

Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

What would you use instead?

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ram Chhabra
Ranch Hand

Joined: Jan 07, 2008
Posts: 48
Like in spite of getters/setters can we directly deal with instance variables?
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

You can place annotations on properties instead of getters, if that's what you're interested in, so yes, you can.

However, I'm not how good your application would be if it didn't have any setters or getters in any of your code.

-Cameron McKenzie

I agree. Here's the link:
subject: Hibernate without POJO's
It's not a secret anymore!