File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 8 in Action this week in the Java 8 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
Similar Threads
books name that guide on light weight design technique
confused with JAP,Hibernate
Domain objects with no dependencys on DAOs
Reverse Engineering using Eclipse?
How to create hbm files for a table which does not have a primary key.