No Query defined for that name, when using Entity Manager
Found it. Thanks to the guys in the comments
Add
@EntityScan("com.server.models")
to your configuration class
and I had an error in the query cause user
needed to be User
Okay, this might be an issue with you persistence configuration. If your models definitions are all in a separate ejb, make sure to add them in the persistence.xml in the persistence-unit