This may not be a hibernate problem, as this is caused when generating the xml files using xDoclet.
When generating the xml files I get the following error:
Code:
[hibernatedoclet] Generating mapping file for uk.ac.warwick.blog.model.subscriptions.SubscriptionItemFilter.
[hibernatedoclet] uk.ac.warwick.blog.model.subscriptions.SubscriptionItemFilter
[hibernatedoclet] (XDocletMain.start 53 ) Running XDoclet failed.
[hibernatedoclet] (XDocletMain.start 54 ) <<Class uk.ac.warwick.blog.model.subscriptions.SubscriptionItemFilter misses ID property>>
[hibernatedoclet] file:C:/apps/eclipse/workspace/blogbuilder/build.xml:186: XDoclet failed.
[hibernatedoclet] at xdoclet.DocletTask.start(DocletTask.java:471)
[hibernatedoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:105)
[hibernatedoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
[hibernatedoclet] at org.apache.tools.ant.Task.perform(Task.java:341)
[hibernatedoclet] at org.apache.tools.ant.Target.execute(Target.java:309)
[hibernatedoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[hibernatedoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[hibernatedoclet] at org.eclipse.ant.ui.internal.antsupport.InternalAntRunner.run(InternalAntRunner.java:418)
[hibernatedoclet] at org.eclipse.ant.ui.internal.antsupport.InternalAntRunner.main(InternalAntRunner.java:167)
[hibernatedoclet] Caused by: xdoclet.XDocletException: Class uk.ac.warwick.blog.model.subscriptions.SubscriptionItemFilter misses ID property
This usually happens if you forget to supply a getId/setId method on the class you're trying to generate, but this is the code i'm using:
Code:
private String _id;
/*
* @hibernate.id generator-class="uuid.hex" unsaved-value="null"
*/
public final String getId() {
return _id;
}
public final void setId(final String id) {
_id = id;
}
has anyone got any clues as to even start working out what the problem is?
I'm using hibernate v2 and xDoclet 1.2.2
Thanks,