Class UserFace
java.lang.Object
com.serinity.accesscontrol.model.base.IdentifiableEntity
com.serinity.accesscontrol.model.base.TimestampedEntity
com.serinity.accesscontrol.model.UserFace
Represents a user's face biometric data stored in the system.
This entity holds a serialized ArcFace embedding vector for a specific
User, used for face recognition
during authentication.
The table user_faces enforces a one-to-one relationship with
the users table via a unique user_id constraint.
Fields include:
user- TheUserthis face embedding belongs to.embedding- Serialized 512-dimensional ArcFace float vector stored as binary (LONGBLOB).
Note: This class is declared final to prevent inheritance and ensure
data integrity.
- Since:
- 2026-02-27
- Version:
- 1.0
- Author:
- @ZouariOmar (zouariomar20@gmail.com)
- See Also:
-
Field Summary
Fields inherited from class TimestampedEntity
createdAt, updatedAtFields inherited from class IdentifiableEntity
id -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class IdentifiableEntity
getId
-
Constructor Details
-
UserFace
public UserFace() -
UserFace
-
-
Method Details
-
getUser
-
setUser
-
getEmbedding
public byte[] getEmbedding() -
setEmbedding
public void setEmbedding(byte[] embedding)
-