Code examples for SQLQuery

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
111:	q.addEntity("FoodItem", FoodItem.class); 
-
113:	List list = q.list(); 
Full Snippet Info
7
CodeRank
254:	when(session.createSQLQuery("create sequence schema.hibernate_sequence")).thenReturn(sqlQuery); 
255:	when(sqlQuery.executeUpdate()).thenReturn(0); 
-
260:	verify(sqlQuery).executeUpdate(); 
Full Snippet Info
6
CodeRank
78:	result = sqlQuery.setFirstResult(firstResultIndex++).setMaxResults(1).list(); 
Full Snippet Info
6
CodeRank
73:	query.executeUpdate(); 
Full Snippet Info
5
CodeRank