-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate generatation has problem with hbm.xml file - why
PostPosted: Wed Sep 07, 2005 12:32 pm 
Newbie

Joined: Wed Apr 27, 2005 4:58 pm
Posts: 3
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

3:

Mapping documents:

None at this time:

Full stack trace of any exception that occurs:

Access

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

Why am I getting this compile error in Eclipse:

The content of element type "class" must match "(meta*,subselect?,cache?,synchronize*,comment?,(id|composite-id),discriminator?,natural-id?,(version|timestamp)?,(property|many-to-one|one-to-one|component|dynamic-component|properties|any|map|set|list|bag|idbag|array|primitive-array|query-list)*,((join*,subclass*)|joined-subclass*|union-subclass*),loader?,sql-insert?,sql-update?,sql-delete?,filter*)". Person.hbm.xml

Person.hbm.xml is

<hibernate-mapping package="org.david">

<class name="Person" table="Person">

<property name="seqId" column="Seq_Id" type="integer" not-null="true" />
<property name="firstName" column="First_Name" type="string" />
<property name="lastName" column="Last_Name" type="string" />
</class>

</hibernate-mapping>

Thanks


Top
 Profile  
 
 Post subject: id problem?
PostPosted: Wed Sep 07, 2005 1:09 pm 
Beginner
Beginner

Joined: Fri Oct 15, 2004 9:58 pm
Posts: 25
The mapping doesn't have identifier. Convert the first element in the class to <id> .. </id>


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