repositories {
maven {
url "http://dl.bintray.com/fint/maven"
}
}
compile('no.fint:fint-relation-model:1.0.7')
Create a new Relation with type, field and value
new Relation.Builder().with(TestDto.Relasjonsnavn.TESTREL).forType(TestDto.class).field("test-field").value("123").build();
or with type and value
new Relation.Builder().with(TestDto.Relasjonsnavn.TESTREL).forType(TestDto.class).value("123").build();
or with link
new Relation.Builder().with(TestDto.Relasjonsnavn.TESTREL).link("http://localhost/test").build();
FintResource.with(testDto).addRelations(relation);