import java.util.List;
import javax.ejb.Singleton;
+import javax.ejb.Startup;
import javax.persistence.Query;
import org.mxchange.jcoreee.database.BaseDatabaseBean;
* <p>
* @author Roland Haeder
*/
+@Startup
@Singleton (name = "country", mappedName = "ejb/addressbook-singleton-country", description = "A singleton session bean for country informations")
public class AddressbookCountrySingletonBean extends BaseDatabaseBean implements AddressbookCountrySingletonBeanRemote {
@SuppressWarnings ("unchecked")
public List<Country> allCountries () {
// Init query
- Query query = this.getEntityManager().createNamedQuery("AllCountries");
+ Query query = this.getEntityManager().createNamedQuery("AllCountries"); //NOI18N
// Return it
return query.getResultList();