If I'm trying to insert some record in my table which has a typical ID (integer not null) field, and I'm leaving the ID field empty (null), I have to make sure that correct value is used automatically.
What is a typical commonly used approach to this for EBean? (use a separate call to some database sequence, use a default ID value from a call to a sequence, ...)
P.S.: The database is PostgreSQL. So, I don't have this nice friendly MySQL feature of "auto_increment".