Getting fewer columns with hibernate
Posted
by Gandalf StormCrow
on Stack Overflow
See other posts from Stack Overflow
or by Gandalf StormCrow
Published on 2010-04-01T13:25:19Z
Indexed on
2010/04/01
13:33 UTC
Read the original article
Hit count: 323
I have a table with 11 columns, but I need to get only 2 of them in my application, I'm using spring/hibernate/DAO combination. For now I have a domain class which includes all 11 fields, and mapping file which maps all 11 columns in table. How do I use get just 2 of them not all?
© Stack Overflow or respective owner