![JAR search and dependency download from the Maven repository](/logo.png)
io.github.mmm.marshall.test.ChildTestBean Maven / Gradle / Ivy
package io.github.mmm.marshall.test;
import io.github.mmm.marshall.id.StructuredIdMapping;
import io.github.mmm.marshall.id.StructuredIdMappingMap;
import io.github.mmm.marshall.id.StructuredIdMappingObject;
/**
* Dummy bean for testing.
*/
public class ChildTestBean implements StructuredIdMappingObject {
static final String PROPERTY_KEY = "key";
private String key;
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @param key new value of {@link #getKey()}.
*/
public void setKey(String key) {
this.key = key;
}
@Override
public StructuredIdMapping defineIdMapping() {
StructuredIdMappingMap map = StructuredIdMappingMap.of(2);
map.put(PROPERTY_KEY);
return map;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy