-->
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.  [ 7 posts ] 
Author Message
 Post subject: JaxB Problem...DiplomaWork. Need Help
PostPosted: Sun Feb 05, 2006 9:40 am 
Newbie

Joined: Fri Feb 03, 2006 10:14 am
Posts: 9
Hi,
i have a big Problem working with Binding Tools. I have tried to get Jaxme and JaxB but they couldnt compile the Hibernate-mapping.2.0.dtd. I also tied to compile the xsd-File of an hibernateUser under http://opensource2.atlassian.com/projec ... ge=history
But that didnt work too. I geht Error like:
[xjc] [ERROR] Property "Column" is already defined.
[xjc] line 930 of file:/C:/Dokumente%20und%20Einstellungen/Chef/workspace/JaxB/hibernate-mapping-2.0.xsd
[xjc] [ERROR] The following location is relevant to the above error
[xjc] line 932 of file:/C:/Dokumente%20und%20Einstellungen/Chef/workspace/JaxB/hibernate-mapping-2.0.xsd
[xjc] [ERROR] Property "Column" is already defined.

I want to create an Java-Class-System in order to use JaxB to get Information about Mapping-Files. My Projevt is an MappingFile-Checker.... so the Mappingfiles i want to check will be created by the user. I dont have any Information of them. But if I compile the whole DTD/xsd schema I think I would be able to mahrshall/unmahrshall every mappingfile. Do I ?

Please Help....


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 05, 2006 12:28 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hi,

Any reason why you want to use JAXB and hibernate 2 ?

why not just hibernate3 and its metamodel or should it be able to parse incomplete mapping files ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 05, 2006 1:25 pm 
Newbie

Joined: Fri Feb 03, 2006 10:14 am
Posts: 9
No...there is no Reason..... maybe the reason that I dont know what that metamodul is able to do.

Can u give me a hint ?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 05, 2006 2:19 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hibernate 3 reads the whole model into its meta model in the org.hibernate.mapping package - entry point is the Configuration.

From here you can read all the information hibernate uses - thus the mappings.

what should your mapping file checkker do ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 05, 2006 4:12 pm 
Newbie

Joined: Fri Feb 03, 2006 10:14 am
Posts: 9
The Checker should check which classes are mapped and if coding conventions like s.open is followed by s.close are fullfilled.

My Problem is that i have also the aim to realize this with castor.... that is why the way doing it by JaxB is prefered.

Do u have an idea why Jax doesnt accept the hibernate dtd ?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 05, 2006 4:23 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
JAXB required an XML schema definition. Not a DTD.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 05, 2006 4:27 pm 
Newbie

Joined: Fri Feb 03, 2006 10:14 am
Posts: 9
An XSD schema like that here u mean ?

http://opensource2.atlassian.com/projec ... ge=history
But that didnt work too. I geht Error like:
[xjc] [ERROR] Property "Column" is already defined.
[xjc] line 930 of file:/C:/Dokumente%20und%20Einstellungen/Chef/workspace/JaxB/hibernate-mapping-2.0.xsd
[xjc] [ERROR] The following location is relevant to the above error
[xjc] line 932 of file:/C:/Dokumente%20und%20Einstellungen/Chef/workspace/JaxB/hibernate-mapping-2.0.xsd
[xjc] [ERROR] Property "Column" is already defined.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.