Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: presence of getX as well as isX thorws MappingException
PostPosted: Mon Aug 17, 2009 8:29 pm 
Newbie

Joined: Thu May 28, 2009 8:52 pm
Posts: 7
Mapping file orm.xml has this,
<access>PROPERTY</access>

If there is a boolean property and accessors defined as,
Code:
   public boolean getFoo() {
      return foo;
   }

   public boolean isFoo() {
      return foo;
   }

   public void setFoo(boolean foo) {
      this.foo = foo;
   }


Then it fails with this exception,
Caused by: org.hibernate.MappingException: Duplicate property mapping of foo found in ...

If the getter (getFoo) is removed then it works.
It works fine in EclipseLink with both getFoo as well isFoo present in the entity.

Is this a hibernate bug?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 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.