Project

General

Profile

bug #6223

change behaviour of AbstractBeanProcessor.excludes to asReference

Added by Andreas Kohlbecker about 2 years ago. Updated about 2 years ago.

Status:
New
Priority:
New
Category:
cdmlib-remote
Target version:
Start date:
11/25/2016
Due date:
% Done:

0%

Severity:
normal
Found in Version:
Tags:

Description

With the excludes property the AbstractBeanProcessor provides a means to omit specific CDM-Bean properties from being serialized. This feature which is frequently used (see /cdmlib-remote/src/main/resources/eu/etaxonomy/cdm/remote/json/jsonConfigurations.xml) causes problems for users and machine clients using the service responses. The respective fields are completely omitted and thus indicating that this data is not existent. This can cause irritation and confusion. A much better solution would be to add the UUID of the excluded entity instead of completely excluding it. When implementing this improvement it must be assured that adding the UUID is not causing unwanted initializations of entities which could cause LazyInitializationExceptions. A good solution to avoid this problems could be to extend hibernate by a mechanism which always loads the uuid just as it is happening for the id without full initialization of the entity.

History

#1 Updated by Andreas Müller about 2 years ago

  • Category changed from cdmlib to cdmlib-remote
  • Assignee changed from Andreas Müller to Andreas Kohlbecker

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)