This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version = NetBeans IDE Dev (Build nbms-and-javadoc-10056-on-20130112) Operating System = Windows 7 version 6.1 running on amd64 Java; VM; Vendor = 1.7.0_11 Runtime = Java HotSpot(TM) 64-Bit Server VM 23.6-b04 I do propose to offer standard @Id template for tables. It's shorthand can be "idt", that will expand to @Id @GeneratedValue(strategy = GenerationType.TABLE, generator = "seq_${Type}") @TableGenerator(name = "seq_${Type}", table = "seq_table", pkColumnName = "seq_name", pkColumnValue = "seq_${Type}", valueColumnName = "seq_value", allocationSize = 1, initialValue = 0) The sequences table used for the code above is: create table seq_table ( seq_name varchar(250) not null, seq_value integer not null default 0, constraint pk_seq_table primary key on (seq_name) ) Similar templates can be offered for Identitity generation ("idi") and Sequence ("ids").
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss