-->
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.  [ 19 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Sun Sep 03, 2006 7:37 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
because each pojo is local and has its own importcontext.

the packagename gets changed via generated-class meta attribute.

if we want to generate both outputs (base class and real class) we probably need a way to control if the importcontext is initialized with the generated-name or just the plain package name.


regarding how much that needs to be done to make dao independent i would need to go through the code for.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 03, 2006 7:39 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Rocky Road wrote:
so you don't intend to fix HBX-748 ? You suggested me to open it !


sure, why don't you think i'm going to fix that ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 03, 2006 8:50 am 
Newbie

Joined: Thu Aug 24, 2006 4:42 am
Posts: 15
Quote:
because each pojo is local and has its own importcontext.

I agree that BasicPojoClass, as a mapping wrapper is a good place for computing the package of the (generated or supplied) pojo class.

Even when we're generating another class, we may need to access it.

But when BasicPojoClass is called for retrieving pojo details, while
generating another class, the (needed) import context is not pojo's.

When we're generating the pojo, then the import context is the package of the pojo. That's particular case where the referred class and the generated class are the same.

When we need to deal with imports, we are concerned with the generated class, not the referred class.

Also when generating *one* class, we need an import context too, should we access BasicPojoClass to get it ?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 03, 2006 8:58 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
no, you create your own ImportContext

_________________
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.  [ 19 posts ]  Go to page Previous  1, 2

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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.