}
// Try to locate it
- Query query = this.getEntityManager().createNamedQuery("SearchUserName", User.class); //NOI18N
+ Query query = this.getEntityManager().createNamedQuery("SearchUserByName", User.class); //NOI18N
// Set parameter
query.setParameter("param", user.getUserName()); //NOI18N
}
// Create query instance
- Query query = this.getEntityManager().createNamedQuery("SearchUserId", User.class); //NOI18N
+ Query query = this.getEntityManager().createNamedQuery("SearchUserById", User.class); //NOI18N
// Set user id
query.setParameter("id", userId); //NOI18N
}
// Generate query
- Query query = this.getEntityManager().createNamedQuery("SearchUserId", User.class); //NOI18N
+ Query query = this.getEntityManager().createNamedQuery("SearchUserById", User.class); //NOI18N
// Set parameter
query.setParameter("id", user.getUserId()); //NOI18N
}
// Generate query
- Query query = this.getEntityManager().createNamedQuery("SearchUserId", User.class); //NOI18N
+ Query query = this.getEntityManager().createNamedQuery("SearchUserById", User.class); //NOI18N
// Set parameter
query.setParameter("id", userId); //NOI18N
}
// Generate query
- Query query = this.getEntityManager().createNamedQuery("SearchUserName", User.class); //NOI18N
+ Query query = this.getEntityManager().createNamedQuery("SearchUserByName", User.class); //NOI18N
// Set parameter
query.setParameter("param", userName); //NOI18N
}
// Generate query
- Query query = this.getEntityManager().createNamedQuery("SearchEmailAddress", User.class); //NOI18N
+ Query query = this.getEntityManager().createNamedQuery("SearchUserByEmailAddress", User.class); //NOI18N
// Set parameter
query.setParameter("param", user.getUserContact().getContactEmailAddress()); //NOI18N
}
// Generate query
- Query query = this.getEntityManager().createNamedQuery("SearchUserName", User.class); //NOI18N
+ Query query = this.getEntityManager().createNamedQuery("SearchUserByName", User.class); //NOI18N
// Set parameter
query.setParameter("param", user.getUserName()); //NOI18N