Title: Mapping Atomic Fields The field-descriptor maps a bean attribute based on a Java primitive type into a JCR property. By default, the persistence manager uses the correct mapping in function of the attribute type (see below the section "Supported Types"). Based on our model defined here, the following field-descriptor maps the bean field "title" (String type) into the JCR property "my:title". ## Supported Types It is not necessary to specify the type in the field-descriptor. The Persistence Manager uses the java introspection to get information on each atomic field.
Java Type | Jcr Type |
---|---|
String | STRING |
Boolean, boolean | BOOLEAN |
Double, double | DOUBLE |
Integer, int | DOUBLE |
Long, long | LONG |
byte\[\](\.html) | BINARY |
java.io.InputStream | BINARY |
java.util.Calendar | LONG (corresponding to Calendar.getTimeInMillis() |
java.sql.Timestamp | LONG (corresponding to Timestamp.getTime() |
java.util.Date | LONG (corresponding to java.util.Date.getTime() |