-->
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.  [ 3 posts ] 
Author Message
 Post subject: bug found!
PostPosted: Tue Sep 26, 2006 3:01 pm 
Beginner
Beginner

Joined: Fri Sep 01, 2006 3:35 pm
Posts: 21
i'm proud to present: a bug i found.
it's easliy reproducible. just map a property, for example:

Code:
private String foo;

public void setFoo(String foo) {...}
public String getFoo(String foo) {...}


so far, everything is fine. but now add
Code:
public boolean isFoo() {...}


hibernate gets confused. especially at
AbstractEntityTuplizer:249
a boolean is returned - no matter what type is defined in the mapping file. it seems, using type1 isX() and type2 getX() should not be used together.

renaming the method fixed the problem.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 28, 2006 10:59 am 
Newbie

Joined: Wed Sep 27, 2006 1:15 pm
Posts: 10
I would rather state that it is a feature beyond any Hibernate use case.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 28, 2006 4:19 pm 
Beginner
Beginner

Joined: Thu Aug 24, 2006 6:01 am
Posts: 49
Location: sophia-antipolis, France
You could probably also just add @Transient to one of the methods.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.