This content has been marked as final.
Show 3 replies
-
1. Re: Database views - best practice?
luxspes Jun 5, 2009 10:23 PM (in response to dhcinc)We just use @Entity and define all the columns as
updatable=false
insertable=false
and sometimes we fallback to spring-jdbc if appropiate. Another option also use sometimes is theImmutable
annotation.But you should really take this discussion to the Hibernate Forum
-
2. Re: Database views - best practice?
caye Sep 1, 2009 11:50 AM (in response to dhcinc)So, if i understood well, we should make an Entity for each view in the database? Is it really the best option possible?
Of course i understand that Seam and Hibernate are Entity-oriented, but maybe this is something that might be considered for a future for Seam because many times it is necesary to get data from a view in database and to have mixed entities that are tables in db with entities that are just views can lead to a confusion.
-
3. Re: Database views - best practice?
luxspes Sep 1, 2009 4:08 PM (in response to dhcinc)why? what kind of confusion?