Yes you can, but not a reference to the hibernate project itself, You could easily build some Jar
file inside your Hibernate project using Ant Script, this Jar
file would encapsulate all your common classes an resources
Then you could add this Jar to Internal and Admin Project Build paths
The problem of this solution is that you will need remember to build the common Jar
file on every change on your common classes
Check this tutorial to know how building a Jar using Ant, you could use Maven too
There is another approach using SVN externals
or any mapped feature on your Version control system, by making the common project as an external repository and check it out in both projects (internal and admin). However using this approach will have the following problems:
- The configuration of this process is not easy as the first approach
- Your code is copied three times, one in the common project, the two others are in the internal and admin project checkouts, the same code the same files.
- Do not ever surprised when you find yourself editing one of the common files with no effect in the running project just to discover at the last minute that your were editing the one of the other two copied files :)
- Someone with some experience with this approach has wrote about his bad journey here