simplified inqle's jenabean classes

1 view
Skip to first unread message

David Donohue

unread,
Sep 12, 2009, 9:26:01 PM9/12/09
to inqle...@googlegroups.com
I removed the need for inqle's Jenabean classes to have these methods
clone()
replicate()
createClone()
createReplica()

Instead I am using these static methods to accomplishing cloning or
replicating of a Jenabean:
org.inqle.data.rdf.jenabean.util.BeanTool.clone(Object);
org.inqle.data.rdf.jenabean.util.BeanTool.replicate(Object);

Anyway, the take home message is that it is much simpler to create a
persistable class in inqle. Just follow these steps
(1) Add this annotation to the class name
@Namespace(RDF.INQLE) [or use your own URI]

(2) If you like, extend the proper class.
Extend GlobalJenabean if an object of this class might be reused
across the globe. THey will have a predicatable ID, on the basis of
their non-ID fields.
Extend UniqueJenabean if an object of this class will be unique, and
should be stamped with creation date etc. The will have a unique,
random ID

Reply all
Reply to author
Forward
0 new messages