-->
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.  [ 2 posts ] 
Author Message
 Post subject: xdoclet generation
PostPosted: Thu Aug 12, 2004 9:02 am 
Newbie

Joined: Thu Aug 12, 2004 8:50 am
Posts: 2
Hello everybody,

This is the context :

I've two class DomainObject and Person

package framework.model;

public class DomainObject {
private Long id;

/**
* @hibernate.id generator-class="increment"
*/
public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}
}

package personne.model;

public abstract class Personne extends DomainObject {
........
}

The DomainObject class is packaging in a jar called framework.jar, and now when I use a ant build to compiled the Personne in another class I have this error :

[hibernatedoclet] (XDocletMain.start 54 ) <<Class personne.model.Personne misses ID property>>.

If my understanding is good enougth, it means that when I make the framework jar, in the class we loose the xdoclet hibernate ...

Is it possible to do this with HibernateDocletTask ??!!! We want a separation from framework and the application code, but if not possible I put DomainObject in the same application jar ;-((

Thank's for helping me

Have a goo day

Bruno


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 12, 2004 12:55 pm 
Newbie

Joined: Thu Aug 12, 2004 8:50 am
Posts: 2
Ok i've found one solution, is too take account the java sources of the 2 domains :

<hibernatedoclet destdir="build/classes">
<fileset dir="src/java">
<include name="**/*.java"/>
</fileset>
<fileset dir="../framework/src/java">
<include name="**/*.java"/>
</fileset>
<packageSubstitution packages="model" substituteWith="mapping"/>
<hibernate version="2.0"/>
</hibernatedoclet>

But is there another solution ???


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

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.