How does IDEA figure out what PU to use to find named queries? Right now it's barfing on most of my ejb3 facets, saying it can't find queries.
In my class I have:
@PersistenceContext(unitName = "timesheet")
private EntityManager entityManager;
I have a persistence facet, with META-INF/persistence.xml in the same module with the name 'timesheet', with exclude-unlisted-classes, and listing all the entities. The entities themselves contain the named queries, yet IDEA refuses to see them.