-->
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: misses ID property...........xdoclet
PostPosted: Mon Nov 08, 2004 12:33 pm 
Newbie

Joined: Wed Jan 14, 2004 11:29 am
Posts: 19
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,


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.