Hi All,

Using AppFuse2, Struts 2 + Hibernate.

Does anyone have a successful pattern for modeling a Database View? I have a POJO built in the usual way that specifies the name of the view for its @Table annotation, but I'm having some problems with it. Firstly, the hibernate3:hbm2ddl keeps trying to build a table for it. Secondly, I'm having some "read-only transaction" issues preventing me from committing data in some tables that have links to this one.

I'd hoped to keep my POJO annotations as straight JPA, but I notice that Hibernate has "mutable" attribute in its Entity annotation that I thought I might have to use. I was hoping to be able to put something in my Hibernate.cfg.xml file instead, but I haven't been able to find anything in the documentation that says you can specify this kind of thing about an entity there. Does anyone know if that's possible?

Cheers,

Rob Hills
Waikiki, Western Australia

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to