-->
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.  [ 2 posts ] 
Author Message
 Post subject: Basic questions - newbie
PostPosted: Tue Oct 04, 2005 3:03 pm 
Regular
Regular

Joined: Mon Aug 29, 2005 9:46 am
Posts: 102
I have some questions that I did not found in the docs:

1. Can I map a View instead of a table? If so, how can I map it without ID, being that views don't have ID?
2. If I already have a view, and I can't map it... will I have to create a table, or there's another way?
3. In an ordinary table, can I not have an ID?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 04, 2005 4:06 pm 
Beginner
Beginner

Joined: Tue Apr 05, 2005 4:27 pm
Posts: 40
Location: canada
views can be treated just like any other table. you would need to define an id property in your mapping to the view as it is required by hibernate. if your view or table doesn't have a primary key then you might look at defining a composite key composed of all columns. you might want to search this forum about this topic, i've seen numerous postings about it before.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.