cyberborean / rdfbeans

Java persistence with RDF
Other
11 stars 12 forks source link

Annotation for 'toString()' value of proxy objects #31

Open cyberborean opened 5 years ago

cyberborean commented 5 years ago

toString() methods of RDFBean proxy objects return subject IRI values, without possibility of customization.

There could be a method annotation to indicate a property for string representation of the object, for instance:

@RDF("foaf:name")
@toString
public String getName();