D
Demetz Markus
Hi everybody!
I'm new to CMP Beans, and i want each bean to have a unique id and do the
relationships over id's. But which is the best way to generate id's? I found
the following:
private Integer generatePrimaryKey() {
return new Integer((new Object()).hashCode());
}
is this a good way?
Isn't there another approach to do an autoincrement?
Thanks for any hint!
Markus
I'm new to CMP Beans, and i want each bean to have a unique id and do the
relationships over id's. But which is the best way to generate id's? I found
the following:
private Integer generatePrimaryKey() {
return new Integer((new Object()).hashCode());
}
is this a good way?
Isn't there another approach to do an autoincrement?
Thanks for any hint!
Markus