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 best start sample Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "hibernate best start sample" Watch "hibernate best start sample" New topic

hibernate best start sample

Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
hi, i'm new in hibernate, just wondering is there any expert here know the simplest sample code for hibernate that we can review, say for example, sample of get table's data (like select col1, col2 from mytable)

thank you very much for guiding
miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
in first place let me state i'm no pro at all;

hibernate query language (hql) is very similar to sql but queries objects instead

let's see an example:

anyway hibernate site and hibernate docs have valuable info and examples; you also might want to try Hibernate In Action book

hope this helps

java amateur
I agree. Here's the link:
subject: hibernate best start sample