
Eclipse Gotcha: Refactor->Move not showing up in Git
In eclipse, if you refactor->move a file from one project to another, it may not show up in your eclipse git staging as deleted from the original project.
In eclipse, if you refactor->move a file from one project to another, it may not show up in your eclipse git staging as deleted from the original project.
Be careful when using setInterval as a timer.
If using the react hook useReducer(reducer, state)
and you notice it runs twice after dispatching an action - this is actually by design for development mode.
If you want to maintain the order of a list of objects retrieve from the database using hibernate/jpa, use the @OrderColumn annotation. An additional column will be created in the database (if ddl is set to update) that will keep track of the order/position of an item in a list.
SQL injection occurs when SQL code can be injected into API input. In this injection attack, valid input has SQL commands concatened with SQL execution commands. When the SQL code is executed, the commands are run. In this process data can be mutated and returned to the attacker.
Always remember the CIA triad when securing API’s:
Below is an example of React hook useState to change the state of a boolean.
You can audit any changes to any entity using envers.
“Everybody wants to be a bodybuilder, but nobody wants to lift heavy ass weight”
Simple example on how to send a post request from the client and handle the response.