Size: a a a

Spring Framework and more

2020 February 12

ĐV

Đạt Vũ in Spring Framework and more
Роман Нагаев
i was given an advice to use structural pattern matching

but i don't know how to use it properly, so you have to google for it yourself
yes, i did
источник

ĐV

Đạt Vũ in Spring Framework and more
i wanna tracking change of object. what field change? and what is the change value?
источник

ĐV

Đạt Vũ in Spring Framework and more
for write log
источник

ĐV

Đạt Vũ in Spring Framework and more
Roman K
Or you need full set of different fields including referenced ones?
i wanna tracking change of object. what field change? and what is the change value?
источник

ĐV

Đạt Vũ in Spring Framework and more
my application using mybatis + spring boot
источник

РН

Роман Нагаев in Spring Framework and more
Đạt Vũ
i wanna tracking change of object. what field change? and what is the change value?
if you don't need to define fields subset for comparison you can use javers
источник

ĐV

Đạt Vũ in Spring Framework and more
checking field by field be too expensive for my memory and take time, cuz my object has a lot of field
источник

ch

central hardware in Spring Framework and more
Đạt Vũ
checking field by field be too expensive for my memory and take time, cuz my object has a lot of field
what is the purpose of change tracking?
источник

ĐV

Đạt Vũ in Spring Framework and more
i has research and found this way
источник

ĐV

Đạt Vũ in Spring Framework and more
central hardware
what is the purpose of change tracking?
i just want write log any change of user to DB ...
источник

ch

central hardware in Spring Framework and more
Đạt Vũ
i just want write log any change of user to DB ...
maybe you can use for it spring AOP
источник

VS

Vitaly Sirotkin in Spring Framework and more
Đạt Vũ
i has research and found this way
this way doesn't treat nested objects
источник

ĐV

Đạt Vũ in Spring Framework and more
Vitaly Sirotkin
this way doesn't treat nested objects
yes, this is my problem
источник

VS

Vitaly Sirotkin in Spring Framework and more
i mean that you'll only see that some object has changed, but not the entire change
источник

ĐV

Đạt Vũ in Spring Framework and more
central hardware
maybe you can use for it spring AOP
yes, i using aop
источник

VS

Vitaly Sirotkin in Spring Framework and more
Đạt Vũ
yes, this is my problem
you can solve it with recursion)
источник

ĐV

Đạt Vũ in Spring Framework and more
источник

ĐV

Đạt Vũ in Spring Framework and more
Vitaly Sirotkin
you can solve it with recursion)
when don't i have another way? i think i must do that
источник

VS

Vitaly Sirotkin in Spring Framework and more
Đạt Vũ
when don't i have another way? i think i must do that
i've written smth like that a long ago, and i didn't find a better way than recursion. i think it is ok, if your object isn't too big to cause stackoverflow)

btw, i advise you to include some mark-interface for your pojos, so that it's easier for you to detect nested objects
источник

ĐV

Đạt Vũ in Spring Framework and more
yes, thank for your opinion
источник