Task #294
closedFix show AccAccount audit detail
100%
Description
- Problem found on audit detail with entity AccAccount.
Also will be fixed closed filter for audit table and sorting entities.
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.
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
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.
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
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.
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.