"If you generate the DDL from the JPA model, it will do this for you.
Check if NetBeans allows any defaults to be configured when generating the JPA model, such as the Id generator."
i generate the other way round - from database (model) to jpa (i am somewhat oldschool - designing first the data model erm based and then try to map it to objects via jpa-generators or with a minimum of handwork)
netbeans seem to only support "GenerationType.IDENTITY" - this is used if there is an auto increment primary key. if auto increment is disabled netbeans produces code without any "@generatedValue"
probably netbeans recognize a id-table if its named "SEQUENCE" ?
Or is there any db->jpa generator that supports generating @TableGenerator from a (given) id-table?