IdentityType queries are specific for the type you're looking for. Except the cases you use the IdentityType directly where all types are considered.
The SampleModel is just a helper class with some useful methods to be used with the sample model. As you're using a custom type, I would suggest to create a specific method to query this type.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
IdentityType queries are specific for the type you're looking for. Except the cases you use the IdentityType directly where all types are considered.
The SampleModel is just a helper class with some useful methods to be used with the sample model. As you're using a custom type, I would suggest to create a specific method to query this type.
Eg.:
List<SaleAgent> users = identityManager.createIdentityQuery(SaleAgent.class)
.setParameter(SaleAgent.LOGIN_NAME, loginName).getResultList();