-->
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: [débutant] : erreur dans les fichiers .HBM.XML
PostPosted: Mon Jan 16, 2006 12:40 pm 
Newbie

Joined: Mon Jan 16, 2006 12:33 pm
Posts: 2
Location: somewhere in france
bonjour a tous....

lorsque (sous eclipse) je lance les XDoclets sur mon projet, j'obtient l'erreur suivante :

[schemaexport] (util.XMLHelper 59 ) Error parsing XML: XML InputStream(44) Lélément "{0}" nécessite des éléments additionnels.

voici mes fichier s HBM.XML

-> Fai.hbm.xml


<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping
>
<class
name="com.mirane.modele.Fai"
table="FAI"
proxy="com.mirane.modele.Fai"
>

<id
name="id"
column="ID"
type="java.lang.Long"
>
<generator class="native">
<param name="sequence">seq_fai</param>
<!--
To add non XDoclet generator parameters, create a file named
hibernate-generator-params-Fai.xml
containing the additional parameters and place it in your merge dir.
-->
</generator>
</id>

<property
name="nom"
type="java.lang.String"
update="true"
insert="true"
column="NOM"
length="40"
/>

<!--
To add non XDoclet property mappings, create a file named
hibernate-properties-Fai.xml
containing the additional properties and place it in your merge dir.
-->

</class>

</hibernate-mapping>


-> Site.hbm.xml

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping
>
<class
name="com.mirane.modele.Site"
table="SITE"
proxy="com.mirane.modele.Site"
>

<id
name="id"
column="ID"
type="java.lang.Long"
>
<generator class="native">
<param name="sequence">seq_site</param>
<!--
To add non XDoclet generator parameters, create a file named
hibernate-generator-params-Site.xml
containing the additional parameters and place it in your merge dir.
-->
</generator>
</id>

<set
name="fai"
table="FAI"
lazy="true"
inverse="false"
cascade="none"
sort="unsorted"
>

<key
column="FAI_ID"
>
</key>

</set>

<property
name="heureGmt"
type="java.lang.Integer"
update="true"
insert="true"
column="HEUREGMT"
/>

<property
name="horairesOuverture"
type="java.lang.String"
update="true"
insert="true"
column="HORAIRESOUVERTURE"
length="40"
/>

<property
name="identifiantInternet"
type="java.lang.String"
update="true"
insert="true"
column="IDENTIFIANTINTERNET"
length="40"
/>

<property
name="motDePasseInternet"
type="java.lang.String"
update="true"
insert="true"
column="MOTDEPASSEINTERNET"
length="40"
/>

<property
name="nom"
type="java.lang.String"
update="true"
insert="true"
column="NOM"
length="40"
/>

<property
name="plan"
type="java.lang.String"
update="true"
insert="true"
column="PLAN"
length="40"
/>

<set
name="listePlayer"
lazy="true"
inverse="true"
cascade="none"
sort="unsorted"
>

<key
column="PLAYER_ID"
>
</key>

<one-to-many
class="com.mirane.modele.Player"
/>

</set>

<property
name="texteLibre"
type="java.lang.String"
update="true"
insert="true"
column="TEXTELIBRE"
length="40"
/>

<!--
To add non XDoclet property mappings, create a file named
hibernate-properties-Site.xml
containing the additional properties and place it in your merge dir.
-->

</class>

</hibernate-mapping>


je ne trouve pas d'ou cela vient... quelqu'un peut m'aider ?? merci ...

_________________
Give me just one last crawl before i can't move at all...


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.