Hi there guys,
When I list finders of an object (here I call "Short") using command
I see something like that:Code:finder list --class com.turkcellteknoloji.kisalt.domain.Short
I thought that those two differ from each one with case-sensitivity. The finders that those two do generate are below:Code:... findShortsByHash(String hash) findShortsByHashEquals(String hash) ...
are completely equal as far I see.Code:@SuppressWarnings("unchecked") public static Query Short.findShortsByHash(String hash) { if (hash == null || hash.length() == 0) throw new IllegalArgumentException("The hash argument is required"); EntityManager em = Short.entityManager(); Query q = em.createQuery("SELECT Short FROM Short AS short WHERE short.hash = :hash"); q.setParameter("hash", hash); return q; } @SuppressWarnings("unchecked") public static Query Short.findShortsByHashEquals(String hash) { if (hash == null || hash.length() == 0) throw new IllegalArgumentException("The hash argument is required"); EntityManager em = Short.entityManager(); Query q = em.createQuery("SELECT Short FROM Short AS short WHERE short.hash = :hash"); q.setParameter("hash", hash); return q; }
What is the way to create case-sensitive finders? Why "finder" functionality has those two duplicate things?
I need reply ASAP.
Regards.




Reply With Quote
