From 03470abdb79bbb3be45ea61d4b56cdb11084aeac Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 11 Apr 2016 19:51:02 +0200 Subject: [PATCH] Let addCountry() return the updated instance which should have a countryId field set. --- .../mxchange/jcountry/data/CountrySingletonBeanRemote.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2