Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. def dispatch void infer(Repository repo,
  2. IJvmDeclaredTypeAcceptor acceptor,
  3. boolean isPrelinkingPhase) {
  4. acceptor.accept(repo.toInterface(repo.name, [])) [
  5. documentation = repo.documentation
  6. annotations += annotationRef(REPOSITORY);
  7. superTypes += JPAREPOSITORY.typeRef(repo.type.cloneWithProxies,Long.typeRef);
  8. ]
  9. }
  10.  
  11. import dsltest.models.Plant
  12. import dsltest.models.Customer
  13.  
  14. package dsltest.repositories {
  15.  
  16. repo PlantRepository : Plant {}
  17. repo CustomerRepository : Customer {}
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement