-->
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: no UID found when using MapGenerator
PostPosted: Mon Sep 15, 2003 12:36 am 
Newbie

Joined: Mon Sep 15, 2003 12:33 am
Posts: 3
Location: Brisbane - Australia
I've added the following

public static final long UID = -16054056347041950L;

and the class implements Serializable. When I run the class2hbm.bat script I get

Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<!-- com.qsipayments.voicepersonals.messaging.Message cannot be added, no UID found! -->
<hibernate-mapping>
</hibernate-mapping>


What am I missing ?


Top
 Profile  
 
 Post subject: Found the problem
PostPosted: Wed Sep 17, 2003 9:12 pm 
Newbie

Joined: Mon Sep 15, 2003 12:33 am
Posts: 3
Location: Brisbane - Australia
I needed to use

--setUID=MessagePK on the command line as this is my generated ID property.


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.