Hello,
I'm new to JavaRanch and I have a problem with saving object to database through
EJB. I have a table, that has fields:
ID (where value is normally generated from sequence) and
YEAR_SEQ_NUMBER (which is sequence-generated value - every year its initial value is reset).
The problem is, that while the field ID works fine, the system does not give the value to YEAR_SEQ_NUMBER saying:
The way I'm trying to map:
I tried to put also the @Id annotation but the server claimed
Is it possible to give number to id automatically from a sequence, so it corresponds to:
?
Regards