Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-dev] Enhancement 344338 - Add support to VirtualAttributeAccessor to allow value types other than Object.class

A patch for the following enhancement is ready for review:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=344338

Currently, VirtualAttributeAccessor can be used to map to a Map<String, Object>, but cannot be used for more specific object types, such as Integer, BigDecimal, QName, Employee, etc.

For example, the user may wish to store all virtual BigDecimal mappings in one data structure, and store all other virtual mappings in the default Map<String, Object>.

This patch adds a setValueType(Class value) method to VirtualAttributeAccessor to allow the configuration of the value type.



--
Rick Barkhouse | Software Developer, EclipseLink | 613.288.4613
Oracle Development
45 O'Connor Street, Suite 400 | Ottawa, Ontario K1P 1A4

Back to the top