On Tuesday, April 16, 2013 4:11:04 PM UTC-4, phidias51 wrote:
>
> Roland,
> We have a similar problem in the bioinformatics world, where a field like 
> "id" could mean an ID from a specific database, an accession (an 
> alphanumeric ID similar to a database ID).  One way around this is to use 
> semantic annotations for fields. Here's an example. 
> http://aspenbio.wordpress.com/2011/01/20/biogroovy-and-the-semantic-web/
>
> Cheers,
>
> Mark
>
> So, when you have a class whose instances can be stored in a relational 
database with a numeric primary key, do you use a Long for its primary key 
instance variable, or do you use a static inner class ID that contains a 
Long? The first is easy to write, while the second is easy to read and 
ensures that no one compares Employee.ID to Department.ID.

Respectfully,
Eric

-- 
You received this message because you are subscribed to the Google Groups "Java 
Posse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/javaposse?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to