[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.
|