-->
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: Can't build mapping files when class extends ex-project root
PostPosted: Wed Jul 13, 2005 6:58 am 
Newbie

Joined: Wed Jul 13, 2005 6:52 am
Posts: 1
[b]Hibernate version:[/b]
2.1.6

[b]Mapping documents:[/b]
I can't get maven to build them.

[b]Code between sessionFactory.openSession() and session.close():[/b]
Not a java coding problem.

[b]Full stack trace of any exception that occurs:[/b]
Not a java coding problem.

[b]Name and version of the database you are using:[/b]
The problem occurs before I need to poke at a DB.

[b]The generated SQL (show_sql=true):[/b]
The problem occurs before I need to poke at a DB.

[b]Debug level Hibernate log excerpt:[/b]
The problem occurs before I need to poke at a DB.



This is more of an xdoclet/maven problem than a hibernate problem, but I figured someone here may have had a similar problem and fixed it already. I'm sorry if in the completely wrong place to be asking this question.


Problem:

1. Hibernate mappings are being auto-generated by maven using xdoclet:hibernatedoclet.
2. I have a core hierarchy of "hibernated" objects in one maven project "core."
3. I have an extension of this core hierarchy in another project "extension."

The first thing I tried to do was just have xdoclet create a new mapping for the extension using "subsclass" and "extends," but when xdoclet:hibernatedoclet is run in the "extension" project, couldn't find the xdoclet tags in "core" and so nothing happens (no hbm.xml files are created) for the new classes.


The next thing I tried was to have some larger enclosing project reference them both and then have xdoclet:hibernatedoclet scan both the "core" and "extension" projects' cores' source and try to build some kind of uber-set of hibernate mapping files, but no dice. I can't get xdoclet:hibernatedoclet to find the source of the sub-projects.


What I was wondering was if anyone out there as had a similar problem, and if so, how you fixed it? I've been reduced to hand-coding the XML for the "extension" project.



Thanks.


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.