@Sbb(name = "MySbb")
public class MySbb implements SbbEntity {
@Resource
private SbbContext sbbContext;
@TransactionAttribute(TransactionAttributeType.REQUIRED)
public void performTransactionalOperation() {
}
}
@Entity
public class Customer {
@Id
private int id;
private String name;
}
<SBB>
<SBBName>MySbb</SBBName>
<Properties>
<Property>
<Name>javax.persistence.jdbc.url</Name>
<Value>jdbc:mysql://localhost:3306/mydb</Value>
</Property>
<Property>
<Name>javax.persistence.jdbc.user</Name>
<Value>username</Value>
</Property>
<Property>
<Name>javax.persistence.jdbc.password</Name>
<Value>password</Value>
</Property>
</Properties>
</SBB>