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