-->
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.  [ 1 post ] 
Author Message
 Post subject: annotations with SQL views
PostPosted: Wed Mar 07, 2007 3:07 pm 
Newbie

Joined: Tue Nov 11, 2003 6:24 pm
Posts: 17
I'd like to define some SQL views and access my data in read-only mode with Hibernate. Since I'm already using annotations for binding with tables, I'd like to use annotations with my views as well.

I'm assuming I can still use:
@Entity
@Table(name = "myentity")

and have 'myentity' be the name of a SQL view? I could omit setters.

Also. is it possible to have hbm2ddl generate the view just as it does tables?


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

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.