-->
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.  [ 1 post ] 
Author Message
 Post subject: transient field question
PostPosted: Tue May 31, 2011 7:36 am 
Newbie

Joined: Tue May 31, 2011 5:52 am
Posts: 1
If I mark a field as transient but supply getters and setters :-

@Transient Integer localFilterId;
public void setLocalFilterId( Integer filterId) { this.localFilterId = filterId; }
public Integer getLocalFilterId() { return localFilterId; }

I get the following runtime error :-

10:13:20,331 ERROR JDBCExceptionReporter:234 - ORA-00904: "FILTERCLAU1_"."LOCALFILTERID": invalid identifier

If however I remove the getters/setters and make the transient field public it works ??

@Transient public Integer localFilterId;

Any ideas why this is happening.
Thanks,
Chris.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.