Custom Create new user

Hi,

I want to add additional fields while creating new user and that fields are one to one to mapped to other table.

for example username firstname, lastname must be stored as per existing user table but date of birth,expiry date address must be stored in different table on save.

is it possible to customize or save new added fields value manually.

The User entity is fully available for adding attributes in your project.
In one of the projects, we needed to add an Organization reference attribute for a user.
Organization is a separate table (reference).
Added attribute:

public class User implements JmixUserDetails, HasTimeZone, AcceptsTenant {

    @Id
    @Column(name = "ID", nullable = false)
    @JmixGeneratedValue
    private UUID id;

    @JoinColumn(name = "ORGANIZATION_ID")
    @ManyToOne(fetch = FetchType.LAZY)
    private Organization organization;
...

And put it on the screen.
The User entity and screen are available for modification in your project.

Thanks for replying

I had already provided one to one mapping and i am also able to view reference fields on my screen but when i am saving the the entity on create user screen the values are not getting inserted in reference table.

It is difficult to say about the specific reasons without looking at the screen code. One can only say ‘there is an error somewhere’.