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.  [ 6 posts ] 
Author Message
 Post subject: How to solve the problem about java generic using xdoclet ?
PostPosted: Wed Aug 16, 2006 12:21 am 
Newbie

Joined: Wed Jul 05, 2006 11:24 pm
Posts: 8
Dear all,

When I tried to run hibernatexdoclet. There is something wrong:


[hibernatedoclet] (XDocletMain.start 47 ) Running <hibernate/>
[hibernatedoclet] Error parsing File E:\eclipse\workspace\iZationII_engine\JavaSource\ws\ization\hb\AdminUser.java:Encountered "<" at line 35, column 20.
[hibernatedoclet] Was expecting one of:
[hibernatedoclet] <IDENTIFIER> ...
[hibernatedoclet] "[" ...
[hibernatedoclet] "." ...

In the error , the line is in the java generic:

private Set<CP> CPs;


How can I solve the problem?

Give me some idea.

Thanks in advance.

happybaobao


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 16, 2006 8:32 am 
Newbie

Joined: Wed Jul 19, 2006 4:05 am
Posts: 13
Hi,

XDoclet doesn't support generics. XDoclet can support the generics syntax with a specific JAR available here : http://opensource.atlassian.com/project ... wse/XJD-41

Regards,


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 16, 2006 7:06 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
If you use the latest snap-shot it should work. I have not verified though so get back and report your success.


Top
 Profile  
 
 Post subject: Thanks David, but there is also exceptin
PostPosted: Wed Aug 16, 2006 11:36 pm 
Newbie

Joined: Wed Jul 05, 2006 11:24 pm
Posts: 8
Hi David,

I have downloaded xjavadoc-1.1-j5.zip and extracted the jar to my xdoclet. However, i also canot use it(to get the mapping file according to xdoclet about java generic).

BTW, could u give me some advice which one i need to download ?

xjavadoc-1.1-j5-src.zip
xjavadoc-1.1-j5-v2.jar
xjavadoc-1.1-j5-v3.jar
xjavadoc-1.1-j5-v4.jar
xjavadoc-1.1-j5.zip
xjavadoc-jdk15-patch.diff
xjavadoc-src-1.1-j5-v4.zip

Thank you very much.

happybaobao


Top
 Profile  
 
 Post subject: i download xjavadoc jar file, but also can not find mapping
PostPosted: Thu Aug 17, 2006 3:12 am 
Newbie

Joined: Wed Jul 05, 2006 11:24 pm
Posts: 8
Dear all,

i download xjavadoc jar file, but also can not find mapping file. Just the following message.

Could anyone help me ?

Thanks,

Caihuan



Buildfile: E:\eclipse\workspace\iZationII_engine\build.xml
init:
[echo] Preparing variables ....
prepare:
[echo] Preparing folders ....
hibernate.doclet:
[hibernatedoclet] (XDocletMain.start 47 ) Running <hibernate/>
BUILD SUCCESSFUL
Total time: 5 seconds


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 18, 2006 9:37 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Here is one (of many) tutorials on using XDoclet with hibernate.
http://www.thogau.net/tutorials/pojo.html
See the section on Xdoclet and Hibernate.

Here is another one I like.
http://www.downside.ch/blog/?page_id=37


The version of XDoclet for the project http://xdoclet.sourceforge.net/xdoclet/index.html
to use would be the latest 1.3.x snap shot (build it yourself).
http://xdoclet.sourceforge.net/xdoclet/install.html

Alternatively, get it from Appfuse since its kept up to date.
http://raibledesigns.com/wiki/Wiki.jsp?page=Downloads

I use XDoclet in one of my major projects so it will work. I suggest you try a simple example first (not using generic) to get the environment setup. Then move from there.

Hope this helps.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.