UserLogin is created upon UserAccount sharing the same ID. However, within the method UserLogin::setUser the ID must be setted manually by way of the following instruction
public void setUser(UserAccount user) { this.user = user; this.user_id = user.getId(); }
The id should be rather setted automatically.