Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Object Relational Mapping
How to get data from 2 column of table through select
Joined: Dec 17, 2006
Nov 26, 2007 07:48:00
I have to get data from two column of table. My table name is Employee_Det the fields in the table are ID,Name,Age,Deg. the query i am using to fetch ID and Name are as followes
Query qr = session.createSQLquery("select e.id,e.name from Employee_det as e").addEntity("e",empl.class)
but this query gives an error. I have to do this by using addEntity() method
rocket mass heater
subject: How to get data from 2 column of table through select
how to get data from alias
Please HELP with Hibernate Mapping!
Hibernate: Problem with subset query
mapping one pojo with multiple tables
Hibernate native sql problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013