A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCM Java EE 6 Enterprise Architect Exam Guide
this week in the
Object Relational Mapping
Unmapped table properties
Joined: Nov 27, 2008
Jul 10, 2009 07:28:20
Hi, using hibernate mapping .. Is it possible to partially map a class to a table leaving out some table columns in the mapping xml file? And, is it possible to have more properties in the mapped class which do not exist as a column in the table?
Joined: Mar 26, 2007
Jul 10, 2009 09:08:05
Yeah it can be done.. Its up to you which columns you want and which you dont. You can have attributes in the bean which are not present in the mappings.
It is sorta covered in the
JavaRanch Style Guide
subject: Unmapped table properties
Hibernate object mapping for a view or multiple tables instead of a single table ?
A question about read message from resource from java class
Hibernate plugin for Eclips
Stored Procedure - Can use unmapped class for result?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014