package test

class OrderService {
	@Property transactional = true
		
	def findAllOrders() {
		return OrderEntry.findAll()
	}
	
	def addOrder(orderEntry) {
		orderEntry.save()
	}
}
package test

class OrderService {
	@Property transactional = true
		
	def findAllOrders() {
		println(getClass().getClassLoader().loadClass("test.OrderEntry"))
		return OrderEntry.findAll()
	}
	
	def addOrder(orderEntry) {
		orderEntry.save()
	}
}
Load test.OrderEntry from class classloader.
Load test.OrderEntry from class classloader.


git-svn-id: 29aad96320b2a07b98332cd568fc1316025c072f@197 1cfb16fd-6d17-0410-8ff1-b7e8e1e2867d
