view « HBM « JPA Q&A





1. Hibernate, MySQL Views and hibernate.hbm2ddl.auto = validate    stackoverflow.com

I can use MySQL views in Hibernate by treating them like tables - ie. the entity is no different than one created for a table. However my application won't deploy when ...

2. HBM2DDL -- Create a database view instead of a Table?    stackoverflow.com

All, Is there some setting that I can tell hbm2ddl to run a view creation statement instead of create a table when generating the database schema? I'm creating my database schema using ...

3. Can I map a table and a view of the same table in Hibernate without breaking my automated tests?    stackoverflow.com

Say I have a table like so:

CREATE TABLE big_table (UUID varchar(32) not null, ... );
I have a query on the table that I can't express as an HQL or Criteria query. ...

4. Using hbm2ddl with a read only view    forum.hibernate.org

Hibernate version: 2.1.4 I have my application's schema all set and mapped with hibernateDoclet->.hbm.xml files -> Generated DDL I need to interface with several read only views from seperate schemas. I created the object, set mutable="false" at the class level, had to create an id, so set generator="assigned" I could not find a way to tell hibernateDoclet that I did not ...