count occurrences of a word in a statement September 02, 2014 public static int countOccurance (String word, String sentence) { Pattern pattern = Pattern.compile(word ,Pattern.CASE_INSENSITIVE); Matcher matcher = pattern.matcher(sentence); int count = 0; while (matcher.find()) count++; return count; } Read more
debug jpa to show the generated SQL September 01, 2014 i consider using eclipselink <property name="eclipselink.logging.level" value="FINE"/> Read more