Questions tagged [dirty-checking]

19 questions
34
votes
2 answers

Hibernate 4 bytecode enhancement not working for dirty checking optimization

I am using the Hibernate 4.3.6 and I made use of the latest Maven bytecode enhancement to instrument all entities for self dirtiness awareness. I added the maven plugin:
Vlad Mihalcea
  • 142,745
  • 71
  • 566
  • 911
29
votes
11 answers

c# marking class property as dirty

The following is a simple example of an enum which defines the state of an object and a class which shows the implementation of this enum. public enum StatusEnum { Clean = 0, Dirty = 1, New = 2, Deleted = 3, Purged = 4 } public…
PaulMay
17
votes
2 answers

How to implement dirty state in VueJs

I am new to VueJs and I am working on a form that I want to enable the Save button only when a change occurs at the model. My initial thought is to compute a dirty function comparing the initial model with the current. Note: This code is not…
Menelaos Vergis
  • 3,715
  • 5
  • 30
  • 46
2
votes
1 answer

Spring data - entity not updated

I have an entity Customer and Spring data interface CustomerRepository shown below: public interface CustomerRepository extends JpaRepository { Customer findCustomerByName(String name); } I save Customer object in the database…
k13i
  • 4,011
  • 3
  • 35
  • 63
2
votes
2 answers

Check if any control has changed and save data upon form closing

We are using vb.net / dev express tools. We have several controls textboxes, combos etc... instead of checking each value changed we want to go through all controls and check if anything has been edited, then save upon form closing. Below is some…
Sirus
  • 382
  • 1
  • 8
  • 35
1
vote
1 answer

Prevent Hibernate from issuing needless updates of entities that have dirty OneToMany Collection

We are using Hibernate 5.3.13 with Spring Data JPA 2.1.12 and when having an already persisted, managed minimal Entity like the following: @Entity @Table(name = "EventsHolder") @Access(AccessType.FIELD) class EventsHolder { @LastModifiedDate …
1
vote
1 answer

How to make an Angular form field "clean" by re-typing original value?

In my code base using an Angular form, the user opens an entry to be edited and the various fields are pre-filled with the current values. The Save button starts disabled, because nothing isdirty in an Angular sense. If the user enters a field and…
Michael Sorens
  • 35,361
  • 26
  • 116
  • 172
1
vote
1 answer

setting IsDirty field in kendo gantt chart

In a simple example like this - https://dojo.telerik.com/UViBAZAP How to mark the field dirty? I want to make changes first and then save at one go. Edit- I want the field on the UI to show that it was edited. like it does in kendo grid.
genericuser
  • 1,430
  • 4
  • 22
  • 40
1
vote
1 answer

How to check an ngModel input field is dirty?

I have this HTML template: How do I check this field is dirty in…
netdjw
  • 5,419
  • 21
  • 88
  • 162
0
votes
1 answer

Why doesn't JPA dirty checking work in Spring environment?

I wonder why JPA Dirty Checking doesn't work in Spring environment. I have a similar experience with Spring boot environment. At this time, I got the answer that 'If you register the transaction manager directly, the JpaTransactionManager required…
choding
  • 67
  • 8
0
votes
1 answer

Hibernate disable dirty checking

I would like to globally disable dirty checking in my application (spring data, hibernate). My goal is that JPA generates update/insert queries only when I explicitly call myRepo.save() or myRepo.myUpdateQuery(). All my entities have final fields…
Alkis Mavridis
  • 1,090
  • 12
  • 28
0
votes
1 answer

How to remove code repetition in Angular for a method that validates form fields

I have a form that when user types a number below 0.001 an error message will appear for all the properties except test4. For test4 I use getValidationTwo that checks if user typed a number below 1 and if he did, display a different warning…
0
votes
1 answer

One of the timestamp fields change is not making the object dirty in gorm

I have a domain class Project package priz.api.project import groovy.transform.AutoClone import net.kaleidos.hibernate.usertype.JsonbMapType import priz.api.challenge.Challenge import priz.api.model.AuditableEntity import…
Shurik Agulyansky
  • 2,607
  • 2
  • 34
  • 76
0
votes
2 answers

Kendo UI for Angular: How to find out about changes in the Kendo-Grid?

Is there any dirty flag in the Kendo-Grid? In the old JQuery version there was one, but in the Angular version I don't see anything like that: https://www.telerik.com/kendo-angular-ui/components/grid/ And if no, how can I get to know about changes?
Ewgenij Sokolovski
  • 897
  • 1
  • 12
  • 31
0
votes
2 answers

What exactly marks an Angular2 reactive FormControl as dirty beside user interaction?

This is a question to gain a deeper understanding of Angular Reactive Forms. We're about to create a lot complex components with lots of FormControl objects in each dialog. Therfor many things are set dynamically at runtime for those FormControl…
1
2