-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Read-only partial mapping
PostPosted: Mon Sep 29, 2003 1:30 pm 
Newbie

Joined: Mon Sep 29, 2003 1:26 pm
Posts: 2
Location: Redmond, WA
I'd like to have multiple ways of accessing the data from a set of tables. Basically, I want read-only access to subsets of the data in tables, with occasional write or update access to the full data. Are my only way of doing this with Hibernate to either define database views that eliminate the extra columns in the database for the (reduced) read-only subsets, or split the tables up so there's a separate table for each subset?

It looks like Hibernate insists on having a property for each column of the table. This makes sense for persistence purposes, but it'd be great if it allowed subsetting for read-only access.

_________________
Dennis M. Sosnoski
Enterprise Java, XML, and Web Services Support - http://www.sosnoski.com
JiBX Lead Developer - http://www.jibx.org
Redmond, WA 425.885.7197


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 29, 2003 1:41 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Quote:
It looks like Hibernate insists on having a property for each column of the table.


Eh??

Why?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 29, 2003 2:06 pm 
Newbie

Joined: Mon Sep 29, 2003 1:26 pm
Posts: 2
Location: Redmond, WA
Whoops, looks like I had an extra property left in my mapping file. Sorry for the confusion. None of the examples I'd looked at showed using only a subset of columns, so I wasn't sure if this was supported.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.