[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: JBM 2.0 JDBCPersistenceManager - volunteers?
AnthonyHib
do-not-reply at jboss.com
Tue Jan 8 08:54:10 EST 2008
well you hit 2 distinct things:
1- DDL, mainly used by Schema Export --> see my previous comment. SchemaExport uses hibernate metadatas to generate a schema creation script. (FYI metadatas is the place where you say my class Person is mapped to the PERSON table or, in your case, the PERSON table is mapped to the entity name "Person" if you don't have a real class)
2- DML. With Hibernate, you use HQL (or JPA QL), it's OO based on class and property names (associations, collections, basic properties).
2-a, if you use dynamic models, you'll have to define aliases (entity-name) instead of using class and property names). Then, in your java code, when querying, you'll use theses aliases. The HQL query will be translated in SQL
2-b if you don't like the generated SQL, if you want to tune it, you'll have to use the SQL query feature which is very close to pure JDBC...
3- about caching, you can disable all the caches.
I must admit that this is a very specific usage of hibernate, I'm pinging the core Hibernate guys to get their feelings.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117911#4117911
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117911
More information about the jboss-dev-forums
mailing list