com.googlecode.jmapper.operations.complex.StringEnumOperation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmapper-core Show documentation
Show all versions of jmapper-core Show documentation
JMapper Framework is a java bean mapper based on javassist. JMapper exposes
interesting features as relational mapping, dynamic conversions and more
package com.googlecode.jmapper.operations.complex;
public class StringEnumOperation extends AComplexOperation {
@Override
protected StringBuilder existingField() {
return sharedMapping();
}
@Override
protected StringBuilder fieldToCreate() {
return sharedMapping();
}
private StringBuilder sharedMapping(){
return write(setDestination(getSource().append(".toString()")));
}
}