Hibernate ORM LoadEvent - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM LoadEvent class.

This code example shows how to use the following methods:getEntityClassName
	 */ 
	public static class LoadCountingListener implements LoadEventListener {
		final AtomicInteger locationLoadEvents = new AtomicInteger();
		@Override 
		public void onLoad(LoadEvent event, LoadType loadType) {
			if ( Location.class.getName().equals( event.getEntityClassName() ) ) {
				locationLoadEvents.incrementAndGet();
			} 
		} 
	} 
 
} 
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java