module refactoring
Added true JPA support and sample project