-
Notifications
You must be signed in to change notification settings - Fork 41
Many To One
In this section will be discussed in detail the manyToOne signature, to understand how it works please visit explicit relations wiki page.
The method manyToOne belongs to RelationalJMapper
class and it has several signatures that use the NullPointerControl
and MappingType
enumerations and always return the destination instance.
These signatures allow both creation and enrichment of the destination instance.
The methods described here, allow the creation of the destination instance.
relationalJMapper.manyToOne(source);
Default parameters:
Enumeration | value |
---|---|
NullPointerControl |
SOURCE |
Destination MappingType
|
ALL_FIELDS |
Source MappingType
|
ALL_FIELDS |
relationalJMapper.manyToOneWithoutControl(source);
Default parameters:
Enumeration | value |
---|---|
NullPointerControl |
NOT_ANY |
Destination MappingType
|
ALL_FIELDS |
Source MappingType
|
ALL_FIELDS |
relationalJMapper.manyToOne(source, mtSource);
Default parameters:
Enumeration | value |
---|---|
NullPointerControl |
SOURCE |
Destination MappingType
|
ALL_FIELDS |
Source MappingType
|
mtSource |
relationalJMapper.manyToOne(source, nullPointerControl, mtSource);
Default parameters:
Enumeration | value |
---|---|
NullPointerControl |
nullPointerControl |
Destination MappingType
|
ALL_FIELDS |
Source MappingType
|
mtSource |
The methods described here, allow the enrichment of the destination instance.
IMPORTANT! the destination instance is directly manipulated, its return is just a convenience
relationalJMapper.manyToOne(destination, source);
Default parameters:
Enumeration | value |
---|---|
NullPointerControl |
ALL |
Destination MappingType
|
ALL_FIELDS |
Source MappingType
|
ALL_FIELDS |
relationalJMapper.manyToOneWithoutControl(destination, source);
Default parameters:
Enumeration | value |
---|---|
NullPointerControl |
NOT_ANY |
Destination MappingType
|
ALL_FIELDS |
Source MappingType
|
ALL_FIELDS |
relationalJMapper.manyToOne(destination, source, mtDestination, mtSource);
Default parameters:
Enumeration | value |
---|---|
NullPointerControl |
ALL |
Destination MappingType
|
mtDestination |
Source MappingType
|
mtSource |
relationalJMapper.manyToOne(destination, source, nullPointerControl, mtDestination, mtSource);
Default parameters:
Enumeration | value |
---|---|
NullPointerControl |
nullPointerControl |
Destination MappingType
|
mtDestination |
Source MappingType
|
mtSource |
© 2016 Alessandro Vurro
- Home
- How to map
- Relations
- Conversions
- creation/enrichment
- XML
- Annotation
- API
- Configurations
- Utilities
- Examples
- Articles
- More information
- Performance tests
- Release Notes