Sorry for the late reply. The @TransactionAttribute annotation for this specific bean method is - @TransactionAttribute(TransactionAttributeType.REQUIRED).
and for the Entity, here is how we have provided the table generator :
@Id @Column(name="id") @TableGenerator( name="TEST_ID_GEN",//Name to be used in column annotation table="ID_GEN",//Name of the table @ db used for id generation pkColumnName = "TBL_ID_NM",//Column of ID_GEN table valueColumnName = "TBL_ID_CUR_VAL",//Column to store the current value pkColumnValue="id",//The column name for which is has to be generated allocationSize=1 ) @GeneratedValue(generator="TEST_ID_GEN",strategy=GenerationType.TABLE) private int id;
|