Class BeanMapper

All Implemented Interfaces:
Mapper<Object>

public class BeanMapper extends AbstractMapper<Object>
Creates the mapping by inspecting object via bean inspection. Given bean doesn't need to have @Column metadata, but the fields need to have the same name as in the given relational path.
Author:
tiwe
  • Field Details

    • DEFAULT

      public static final BeanMapper DEFAULT
    • WITH_NULL_BINDINGS

      public static final BeanMapper WITH_NULL_BINDINGS
  • Constructor Details

    • BeanMapper

      public BeanMapper()
    • BeanMapper

      public BeanMapper(boolean withNullBindings)
  • Method Details

    • createMap

      public Map<Path<?>,Object> createMap(RelationalPath<?> entity, Object bean)
      Description copied from interface: Mapper
      Create a map of updates for the given path and instance
      Parameters:
      entity - path
      bean - instance
      Returns:
      bindings