All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dozer-mapping.out-mappings.person-out.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<mappings xmlns="http://dozer.sourceforge.net"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://dozer.sourceforge.net
          http://dozer.sourceforge.net/schema/beanmapping.xsd">
		  
		  
		  
		<!-- 
          		Fetched: persistence info
        -->
        <mapping 	map-id="person_root_data" 
          			wildcard="true" 
          			type="one-way"  
          			relationship-type="non-cumulative" 
          			trim-strings="true">
          		
				<class-a>io.github.jsoagger.core.model.people.person.Person</class-a>   
				<class-b>io.github.jsoagger.core.model.people.person.PersonVO</class-b>
				
				<field-exclude>
					<a>deletionInfo</a>
					<b>deletionInfo</b>
				</field-exclude> 
				<field-exclude>
					<a>account</a>
					<b>account</b>
				</field-exclude> 
				<field-exclude>
					<a>roles</a>
					<b>roles</b>
				</field-exclude> 
				<field-exclude>
					<a>groups</a>
					<b>groups</b>
				</field-exclude> 
				<field-exclude>
					<a>contactMechanism</a>
					<b>contactMechanism</b>
				</field-exclude>
			</mapping>
			
		<!-- 
          		Fetched: persistence info
        -->
        <mapping 	map-id="person_account_role_group" 
          			wildcard="true" 
          			type="one-way"  
          			relationship-type="non-cumulative" 
          			trim-strings="true">
          		
				<class-a>io.github.jsoagger.core.model.people.person.Person</class-a>   
				<class-b>io.github.jsoagger.core.model.people.person.PersonVO</class-b>
				
				<field>
					<a>account</a>
					<b>account</b>
				</field> 
				<field>
					<a>roles</a>
					<b>roles</b>
				</field> 
				<field>
					<a>groups</a>
					<b>groups</b>
				</field>
				
				<field-exclude>
					<a>deletionInfo</a>
					<b>deletionInfo</b>
				</field-exclude> 
				<field-exclude>
					<a>contactMechanism</a>
					<b>contactMechanism</b>
				</field-exclude>
			</mapping>
			
			
			<!-- 
          		Fetched: persistence info
        -->
        <mapping 	map-id="person_account" 
          			wildcard="false" 
          			type="one-way"  
          			relationship-type="non-cumulative" 
          			trim-strings="true">
          		
				<class-a>io.github.jsoagger.core.model.people.person.Person</class-a>   
				<class-b>io.github.jsoagger.core.model.people.person.PersonVO</class-b>
				
				<field>
					<a>gender</a>
					<b>gender</b>
				</field>
				<field>
					<a>middleName</a>
					<b>middleName</b>
				</field>
				<field>
					<a>lastName</a>
					<b>lastName</b>
				</field>
				<field>
					<a>firstName</a>
					<b>firstName</b>
				</field>
				<field>
					<a>birthDate</a>
					<b>birthDate</b>
				</field>
				<field>
					<a>birthPlace</a>
					<b>birthPlace</b>
				</field>
				<field>
					<a>comment</a>
					<b>comment</b>
				</field>
				<field>
					<a>id</a>
					<b>persistenceInfo.id</b>
				</field>
				<field>
					<a>version</a>
					<b>persistenceInfo.version</b>
				</field>
				<field>
					<a>persistenceInfo.lastModifiedDate</a>
					<b>persistenceInfo.lastModificationDate</b>
				</field>
				<field>
					<a>persistenceInfo.lastModifiedBy</a>
					<b>persistenceInfo.lastModifiedBy</b>
				</field>
				<field>
					<a>persistenceInfo.createDate</a>
					<b>persistenceInfo.creationDate</b>
				</field>
				<field>
					<a>persistenceInfo.createdBy</a>
					<b>persistenceInfo.createdBy</b>
				</field>
				<field>
					<a>account.id</a>
					<b>account.persistenceInfo.id</b>
				</field>
				<field>
					<a>account.nickname</a>
					<b>account.nickname</b>
				</field>
				<field>
					<a>account.login</a>
					<b>account.login</b>
				</field>
				<field>
					<a>account.version</a>
					<b>account.persistenceInfo.version</b>
				</field>
				<field>
					<a>account.persistenceInfo.lastModifiedDate</a>
					<b>account.persistenceInfo.lastModificationDate</b>
				</field>
				<field>
					<a>account.persistenceInfo.lastModifiedBy</a>
					<b>account.persistenceInfo.lastModifiedBy</b>
				</field>
				<field>
					<a>account.persistenceInfo.createDate</a>
					<b>account.persistenceInfo.creationDate</b>
				</field>
				<field>
					<a>account.persistenceInfo.createdBy</a>
					<b>account.persistenceInfo.createdBy</b>
				</field>
				
				<field-exclude>
					<a>roles</a>
					<b>roles</b>
				</field-exclude> 
				<field-exclude>
					<a>groups</a>
					<b>groups</b>
				</field-exclude> 
				<field-exclude>
					<a>deletionInfo</a>
					<b>deletionInfo</b>
				</field-exclude> 
				<field-exclude>
					<a>contactMechanism</a>
					<b>contactMechanism</b>
				</field-exclude>
			</mapping>
</mappings>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy