-->
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.  [ 3 posts ] 
Author Message
 Post subject: Problem in schemaExport
PostPosted: Fri Apr 22, 2005 9:50 am 
Regular
Regular

Joined: Fri Feb 25, 2005 3:02 am
Posts: 71
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hi, am getting the following error while doing an schemaexport. Here are my part of my code :

/**
* Get a set of parameters for this Application
* @hibernate.set
* inverse = "true"
* order-by = "application_id"
* @hibernate.collection-one-to-many
* class = "com.gloptv.Parameter"
*/
public Set getParameters()
{
return this.parameters;
}

And part of my Application.hmb.xml generated file
<set
name="parameters"
lazy="false"
inverse="true"
cascade="none"
sort="unsorted"
order-by="application_id"
>

<one-to-many
class="com.gloptv.Parameter"
/>
</set>


Can anyone please help me solve my problem
thanks in advance.

[b]Hibernate version:3.0[/b]

[b]Mapping documents:[/b]

[b]Code between sessionFactory.openSession() and session.close():[/b]

[b]Full stack trace of any exception that occurs:
[schemaexport] (util.XMLHelper 59 ) Error parsing XML: M:\tomcat\webapps\smsc\WEB-INF\classes\com\gloptv\Application.h
bm.xml(66) The content of element type "set" must match "(meta*,subselect?,cache?,synchronize*,key,(element|one-to-many|many-to-many|composi
te-element|many-to-any),loader?,sql-insert?,sql-update?,sql-delete?,sql-delete-all?,filter*)".
[/b]

[b]Name and version of the database you are using:postgresql 8.0[/b]

[b]The generated SQL (show_sql=true):[/b]

[b]Debug level Hibernate log excerpt:[/b]


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 22, 2005 10:05 am 
Senior
Senior

Joined: Mon Apr 04, 2005 8:04 am
Posts: 128
Location: Manchester, NH USA
You may want to read the error - it is an XML validation error - you are missing the <key> element in the <set> element.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 25, 2005 1:06 am 
Regular
Regular

Joined: Fri Feb 25, 2005 3:02 am
Posts: 71
thanks. it works now


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