blob: ba7e2e2e8b1e68d01a99f7614e3c0e22fa2979b0 [file] [log] [blame]
package example
import grails.gorm.services.Service
import grails.gorm.transactions.Transactional
import org.springframework.beans.factory.annotation.Autowired
@Service(Student)
abstract class StudentService {
TestService testServiceBean
abstract Student get(Serializable id)
@Transactional
List<Book> booksAllocated(Serializable studentId) {
assert testServiceBean != null
}
}