-->
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: Table doesn't get created for classes with boolean or int
PostPosted: Sat Jul 29, 2006 11:20 am 
Newbie

Joined: Fri Jul 28, 2006 9:34 am
Posts: 4
Location: United States
When my Pojos contain boolean or int variables a table for it doesn't get created. the other variables that are String and Long get created fine. What am I doing wrong here?

class Group
{
Long id;
String label;
bool initiallyVisible;
}

Hibernate Mapping Group.hbm.xml
<class >
<id>
.........
</id>
<property name="label" />
</class>

The table gets created fine if there is no property for initiallyVisible.

When I add a property for initiallyVisible it doesn't create the table.
i.e:

<class >
<id>
.........
</id>
<property name="label" />
<property name="initiallyVisible" />
</class>

I have tried assigning the type attribute to boolean. That doesn't work either.

Any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 29, 2006 2:42 pm 
Newbie

Joined: Fri Jul 28, 2006 9:34 am
Posts: 4
Location: United States
ok. So now it seems to be working. This is wierd. I had a field int order which was causing a problem. When I changed the field to "orderNum" it works. Has anyone experienced this?


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.