I have this case: in entity I set a sequence with @GeneratedValue and @SequenceGenerator.
I use a Db where it is set for each ID(primary key) to have auto increment with special sequense. This is the reason to use this annotation to connect corrently the sequense.
When I try to insert a new record, the jmix displays this error (entityId is null) but the data is inserted in db.
I try to fix it with your @JmixGeneratedValue(sequenceName = “sequence_name”),
but it genarates a new Id always when I open the screen for inserting, no matter if I save the data in db or not.
I want to generate a new ID only when i have a record in db.
thank you an advance
I have this case: in entity I set a sequence with @GeneratedValue and @SequenceGenerator.
I use a Db where it is set for each ID(primary key) to have auto increment with special sequense. This is the reason to use this annotation to connect corrently the sequense.
When I try to insert a new record, the jmix displays this error (entityId is null) but the data is inserted in db.
I try to fix it with your @JmixGeneratedValue(sequenceName = “sequence_name”),
but it genarates a new Id always when I open the screen for inserting, no matter if I save the data in db or not.
I want to generate a new ID only when i have a record in db.
thank you an advance