Project

General

Profile

Actions

Task #294

closed

Fix show AccAccount audit detail

Added by Ondřej Kopr about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Ondřej Kopr
Category:
Audit
Target version:
Start date:
02/03/2017
Due date:
% Done:

100%

Estimated time:
Owner:

Description

  • Problem found on audit detail with entity AccAccount.

Also will be fixed closed filter for audit table and sorting entities.

Actions #1

Updated by Ondřej Kopr about 7 years ago

  • Description updated (diff)
Actions #2

Updated by Ondřej Kopr about 7 years ago

  • % Done changed from 0 to 90

Bug fix:
SysSystemEntity (binding entity) isn't connect to audit so this connection might not exist. Fix for all other binding entity.

Actions #3

Updated by Ondřej Kopr about 7 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Ondřej Kopr to Vít Švanda
Actions #4

Updated by Vít Švanda about 7 years ago

- For check hibernate proxy use please somtihing as:

if ( value instanceof HibernateProxy ) {
                    HibernateProxy proxy = (HibernateProxy) value;
                    LazyInitializer li = proxy.getHibernateLazyInitializer();
                    li.getEntityName();
                }

- SystemEntity do audited
- Resolve @audited, when will be only to Class.

Actions #5

Updated by Vít Švanda about 7 years ago

  • Status changed from Needs feedback to In Progress
  • Assignee changed from Vít Švanda to Ondřej Kopr
Actions #6

Updated by Ondřej Kopr about 7 years ago

  • % Done changed from 90 to 60
Actions #7

Updated by Ondřej Kopr about 7 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Ondřej Kopr to Vít Švanda
  • % Done changed from 60 to 90

I added FieldUtils from org.apache.commons.lang3.reflect.FieldUtils to get all fields from entity, including property from AbstractEntity. (I want to used faster method - Introspector.getBeanInfo, but this isn't possible, Im not possible get annotations from properyDescriptor).

Now in audit detail is showing all information including abstract entity property like modfied, modifier id and etc.

Also I changed get class name from values - hibernate proxy and lazy initializer (non existing entity like SysSystemEntity).

Please check audit detail with yours data, thank you.

Actions #8

Updated by Vít Švanda about 7 years ago

  • Status changed from Needs feedback to Resolved
  • Assignee changed from Vít Švanda to Ondřej Kopr
  • % Done changed from 90 to 100

I tested it and everithing looks fine. Get identifier form hibernate proxy is awesome experience.

Actions #9

Updated by Ondřej Kopr about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF