From: Roland Haeder Date: Mon, 11 Apr 2016 17:51:02 +0000 (+0200) Subject: Let addCountry() return the updated instance which should have a countryId field... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=03470abdb79bbb3be45ea61d4b56cdb11084aeac;p=jcountry-lib.git Let addCountry() return the updated instance which should have a countryId field set. --- diff --git a/src/org/mxchange/jcountry/data/CountrySingletonBeanRemote.java b/src/org/mxchange/jcountry/data/CountrySingletonBeanRemote.java index 175f58b..da3732c 100644 --- a/src/org/mxchange/jcountry/data/CountrySingletonBeanRemote.java +++ b/src/org/mxchange/jcountry/data/CountrySingletonBeanRemote.java @@ -35,9 +35,11 @@ public interface CountrySingletonBeanRemote extends Serializable { *

* @param country Country instance to add (persist) *

+ * @return Updated country instance with timestamp and id number + *

* @throws org.mxchange.jcountry.exceptions.CountryAlreadyAddedException If the country is already added */ - void addCountry (final Country country) throws CountryAlreadyAddedException; + Country addCountry (final Country country) throws CountryAlreadyAddedException; /** * All registered countries