Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [LIKELY JUNK]Re: [dali-dev] boolean getter method

Title: boolean getter method
10x Paul,
 
In that case I will report a bug in DALI, because when we have boolean (small 'b') attribute with 'get' prefix of the get method the Eclipse 'doesn't like' it. (NOTE: The validation fails only for property-based access)
 
Stefan


From: dali-dev-bounces@xxxxxxxxxxx [mailto:dali-dev-bounces@xxxxxxxxxxx] On Behalf Of Paul Fullbright
Sent: Tuesday, January 06, 2009 4:46 PM
To: General Dali EJB ORM developer discussion.
Subject: [LIKELY JUNK]Re: [dali-dev] boolean getter method

Actually, I take that back.  I don't think we've done that for (big B) Boolean attributes.  Only (small b) boolean attributes.

- Paul


Paul Fullbright wrote:
My understanding is that for boolean (and Boolean) attributes, either "is" *or* "get" is acceptable.  We've always analyzed and generated code (to my recollection) with this understanding.

- Paul

Dimov, Stefan wrote:

Hi,

I've read some discussions about the signature of the accessor methods of an entity and I'm not certain if a getter with prefix 'get' is valid (in addition to the 'is' prefix). The EJB specification is also unclear (in my opinion) about this:

"… In this case, for every persistent property property of type T of the entity, there is a getter method, get-
Property, and setter method setProperty. For boolean properties, isProperty is an alternative name for
the getter method. …"

In other words, my question is:

For the getter method of an entity attributes of type 'boolean' is the only valid prefix 'is'  or the 'get' prefix is also allowed?

Best wishes!
Stefan Dimov


_______________________________________________ dali-dev mailing list dali-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/dali-dev


-- 
Paul Fullbright
Eclipse Java Persistence Tools (Dali) Development
Oracle

_______________________________________________ dali-dev mailing list dali-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/dali-dev


-- 
Paul Fullbright
Eclipse Java Persistence Tools (Dali) Development
Oracle

Back to the top