added equals and hash function, modified persistence.xml to OpenJPA
compilable