[Design of Messaging on JBoss (Messaging/JBoss)] - Re: JBM 2.0 JDBCPersistenceManager - volunteers?
by AnthonyHib
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
18 years, 2 months
[Design of Messaging on JBoss (Messaging/JBoss)] - Re: JBM 2.0 JDBCPersistenceManager - volunteers?
by apwalker
anonymous wrote : Anthony
|
| 1- Using Hibernate/JPA just because Schema Export is useful isn't a sufficient argument. Schema Export is a development tool. Generated Schemas need to be reviewed/tuned by a DBA, so you cannot rely 110% on it in production
|
Correct you most creatainly need way to generate scripts that can be reviewed by DBA for going into production. With previous versions of JBossMQ and JBM I would run the app server configured with a DB user with create premissions in a dev/test environment have if create the tables etc the use a tools to extract the DDL so it can be used to create the prod environment. This is always a pain. How I saw this work was that I could simply run a script that would generate the correct DDL from some hiberante config. Now whether we then just use pure JDBC or Hibernate at run time is a seperate issue.
JBPM does this quite nicely in that the have a seperate DB project which you to create DDL for both new systems and when upgrading to new versions (alter scripts).
anonymous wrote : Tim
|
| However, maybe I am mistaken / misinformed and such an API does not exist, in which case I imagine we need to go down the ORM route. If this is the case I would like to know if HIbernate can be configured to not cache - basically just act as a raw "translator".
|
Hibernate has the concept of a stateless session which is means no session level caching. I spoke to Gavin sometime ago about using Hibernate for persitance for the JBM project and he said it really was a good fit but if we did go down this path then use the stateless session.
The persisntance requirements for messaging are pretty simple and I think itôs possible to tune a pure JDBC solution and that ORM is overkill for runtime. I think it would be a good idea to try a couple of prototypes I happy to work on one or two of them.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117902#4117902
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117902
18 years, 2 months
[Design of JBoss jBPM] - Re: How to add custom node?
by anas
I appreciate your effort for answering me,,,
I checked the the node type in 9.3.7,,, but my case is that i want to add a custom attributes to the class node itself,, in other words,, node class contains id as long,, and i want to add a type of node that contain myId as int,, and get its value from the processdefinition.xml,, i.e:
<process-definition name="simple">
<custom-node myId="5">
...... </custom-node>
</process-definition>
is there any solution,, or i have to rebuild the jpdl in order to do that??
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117888#4117888
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117888
18 years, 2 months