These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: follow up for HBX-747
PostPosted: Fri Sep 01, 2006 11:57 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
copied these questions from HBX-747:

Quote:
you wrote:
>importContext is something that is very much exporter and context dependent and not something that should be "global".
> e.g. pojo's importContext is for that class and not for others. so if you need an additional importcontext you just create one.

That's exactly what I'd like to talk about (tell me if your means were different):

* The exporter is given a filepattern, which, in case of java classes generation, may imply a specific destination package.


yes and also any initial path so cannot be used as direct mapping to the package/classname.

Quote:
* The template may be applied to differents contexts, each related to a mapped class; this is actually specified by using the "{class-name}" marker in the file pattern


yes, i've thought about adding another mean of choosing between per-class or per-configuraiton generation.

Quote:
* the template may be dedicated to the pojo class definition. Then the destination package is specified in the hibernate mapping (the tool output directory being considered as an element of the classpath).


not necessarily true.

Quote:
* or (dao example) class-dependant tools, which may be located in different package than the pojo, but maybe related to it (this would be the role of the "{package-name}" marker).


for more flexible package/class names we would need more templating for the class name.

Quote:
* or to an model-wide tool, accessing whole hibernate class mapping. For example the DAOFactory from Christian Bauer (http://www.hibernate.org/328.html).


yes?

Quote:
So, the java import context may well be different from the pojo context, whilst it may be related to.


yes, and what is the question exactly ? :)

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.