Code example for LoadEvent

Methods: getEntityClassName

0
	 */ 
	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();
			} 
		} 
	} 
 
} 
Connect your IDE to all the code out there  Get Codota for Java