# Can code in one package reach another package's repository?


--- by layer: controller/Shortcut.java reaches into repository/ ---
compiled with 0 errors

--- by feature: loan/Shortcut.java reaches into book/ ---
error: com.ankurm.structure.byfeature.book.BookRepository is not public in com.ankurm.structure.byfeature.book; cannot be accessed from outside package
