Edit User Data
Learn how to enable the editing of user data.
We'll cover the following
Adding version
In order to support the editing of our User
entities, we will need to make some changes in the Java code. First of all, we will use io.github.wimdeblauwe.jpearl.AbstractVersionedEntity
as the superclass of User
instead of io.github.wimdeblauwe.jpearl.AbstractEntity
.
This class adds a version field to the entity
, which will allow us to use user
or by himself in another tab, for example).
Updating SQL script
Let’s update our SQL creation script to have the new version field:
Get hands-on with 1200+ tech skills courses.