-->
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.  [ 47 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject:
PostPosted: Thu Apr 13, 2006 6:08 pm 
Expert
Expert

Joined: Thu Sep 22, 2005 10:29 am
Posts: 285
Location: Almassera/Valencia/Spain/EU/Earth/Solar system/Milky Way/Local Group/Virgo Supercluster
I cannot see anything strange.

try
Code:
<key-property name="id" type="integer"/>

instead of
Code:
<key-property name="id" type="int"/>


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 17, 2006 3:29 am 
Beginner
Beginner

Joined: Wed Jan 25, 2006 7:32 am
Posts: 34
Hi Peplmn,

I have tried to use both ways as what you have recommended.

Yet it didn't return the result as what is expected. I have even upgraded MYSQL 5.0 to allow the creation of view table.

Though I can retrieve the view table but the result returned is not as expected.Retriving the view table itself from MYSQL console, has not problem with the same primary key.

I notice that in Hibernate, any entity tables that are mapped either to a normal table or a view table, the result returns need to have a unique key on each of the row of the table. In fact I have set mutable="false".

I think Hibernate need to ensure that it supports for view table even with the same primary key which are union from two tables(these two tables have the same primary key format defined).

Anyway, thanks Pepelmn.! :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 47 posts ]  Go to page Previous  1, 2, 3, 4

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.