I've been trying to understand and document how the CMP-JPA integration works, and I've found something in the CMP2 code that has me confused. In the mapClass2X() method in CmpJmpConversion, the code derives the names of the CMP field mappings by looking for abstract "get" and "is" methods in the bean class. However, in the createGetter() method in Cmp2Generator, the getter name is always generated using a "get" prefix. Shouldn't this be checking to see if the abstract method is an "is" method and generate the appropriate one? The current code would appear to generate a non-instantiable class if the source bean is using "is" methods.

Rick

Reply via email to