Project

General

Profile

Actions

feature request #1080

closed

Model changes for references, taxonBase, OriginalSource

Added by Andreas Müller over 14 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Priority11
Category:
cdmlib
Target version:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
critical

Description

Dear All,

I would like to inform you that I was working on some model changes the last days. I committed them to the trunk so you will find the changes in the svn.

The changes are:

1) References:

1a) I added a new field "refererenceAbstract" to the referenceBase class

1b) I deleted the BibtexReference class -> as a result I merged the StrictReferenceBase class into the referenceBase class and deleted StrictReferenceBase

1c) I deleted BibTexEntryType and it's DefinedTerm csv file

1d) I moved all attributes of referenceBase subclasses to referenceBase. The according methods in the subclasses are passed through to the base class. At the same time created an Enum ReferenceType the represents all the subclasses an is an attribute in referenceBase.

This is the first step to remove the subclasses completedly (at least for persistence) which makes e.g. casting much easier. The type check will probably removed by hibernate validation later.

1e) I removed the attributes inSeries, inProceedings, inBook, inJournal by the one attribute inReference.

1f) I removed the "Publisher" class (this was an old class not in use anymore)

2) TaxonBase: I added an string field "appendedPhrase" and a boolean field "useNameCache". The first is used to add a concept related phrase like "sensu latu" to the pure name used for the taxon. The second is used to use only the names name cache instead the title cache. This is sometimes needed in combination with the appended phrase attribute.

I still have to adapt the according cache strategy!

3) I changed the molecular.Sequence.dataSequenced field from Calendar to joda times DateTime. Now all Calendar types should be removed by joda time types.

4) I added a boolean field "isTechnical" to MarkerType. This way we can differentiate between markers for user defined content (to be shown in applications) and markers that are just to be read by machines and define e.g. a role of on object (e.g. a FeatureTree may have different, these roles may be defined by markers, this is not an information a user needs but usually just a machine).

Problems to be solved:

=============================

1) Most tests are running. The only test I know that it is not running (except for cdmlib-remote tests) is in io.jaxb.ReferenceTest.

@Anahit, Katja, Ben: Could you please try to fix this test? Also the JAXB import and export or at least the schema may be broken. This should be fixed too.

The cdmlib-remobe tests also seem to be broken. Andreas K. & Ben could you please try to fix them?

2) ReferenceBase.inReference: I deleted the @IndexedEmbedded annotation because I just hadn't time to check how to use it correctly. I will try tomorrow.

@Ben: Do you have a hint? I think you added this annotation to the in-references

I hadn't have time to test the new model intensively yet (except for unit and integeration tests). A first try with diptera seems to be successful. But please be aware that some problems could appear when updating (please just let me know immidiately)

Cheers,

Andreas M.

Actions

Also available in: Atom PDF