Project

General

Profile

Actions

bug #6223

open

change behaviour of AbstractBeanProcessor.excludes to asReference

Added by Andreas Kohlbecker over 7 years ago. Updated over 7 years ago.

Status:
New
Priority:
New
Category:
cdmlib-remote
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
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.

Actions #1

Updated by Andreas Müller over 7 years ago

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

Also available in: Atom PDF