private static final long serialVersionUID = 15_846_983_298_691_207L;
@Override
- public void addCountry (final Country country) throws CountryAlreadyAddedException {
+ public Country addCountry (final Country country) throws CountryAlreadyAddedException {
// Is it already there?
if (null == country) {
// Throw NPE
// Flush it to get id number back, maybe it is directly needed?
this.getEntityManager().flush();
+
+ // Return updated instance
+ return country;
}
@Override