Jim Alateras wrote: > Rong, > > Just some further questions related to the previous email. > > > 1. We are also using Hibernate + Spring + DAO for our project. I have > used this architecture extensively over the past couple of years but > never on an archetypal domain model. Can you provide some guidelines as > how you mapped data containers (i.e. Lists, Sets) with polymorphic > entries. For instance the Party object in the demographics package has > an ItemStructure, which can be hierarchical and can contain any object > of type Item (ItemList, SingleItem etc). How did you may that to a > relational model?
We use "table per class hierarchy" strategy to map inheritance. For the ItemStructure attribute of Party, just declare a "many-to-one" and hibernate will take care of the rest ;) > > 2. Can you provide any feedback on using archetypes and RDBMS with > respect to querying. I suspect that with such a model you will probably > need to use stored procedures to take advantage of the RDBMS's query > engine. Either that or do a lot of query processing in-memory. Is that > your experience. No, we haven't had the need to use stored procedures. So far, we are happy with the query feature (HQL) provided by hibernate since our application works with one Composition at a time. It could be quite tricky (if not impossible) to query internal node of a large object by HQL, then in-memory query is probably the only way since stored procedure wouldn't help either. > > 3. I read somewhere about templates and using them for the presentation > layer. Can you direct me to further information on templates? We are also waiting for the template specification. Maybe Thomas can shed some light on it? > > > These are the areas that we still need to resolve to get comfortable > moving forward. We would be more than happy to contribute changes, bug > fixes and documentation back to the openehr java kernel project. Thanks, we are looking forward to that. > > cheers > </jima> > > - > If you have any questions about using this list, > please send a message to d.lloyd at openehr.org > - If you have any questions about using this list, please send a message to d.lloyd at openehr.org

