-->
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: Can we set the getters and setters for DiscriminatorColumn
PostPosted: Wed Oct 26, 2005 6:24 am 
Beginner
Beginner

Joined: Tue Aug 09, 2005 1:34 am
Posts: 26
Location: Bangalore
Hi,

Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.2 beta

Myswl 5.0.2 Alpha

The generated SQL (show_sql=true):

Can we have the getters and setters for DicriminatorColumn.
I need to set the value in DiscriminatorColumn thru an instance variable
as a setter method how can I achieve this.

Is there anything that we can do with the DiscriminatorColumn.


Thanks
Manjith Kumar.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 26, 2005 8:04 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
changing the discriminator is not allowed; how should hibernate handle that ? If you change the discriminator the object should change class which is not a well defined operation in Java (and most other languages)

if you really want to change the value do it through jdbc

_________________
Max
Don't forget to rate


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.