Fixed some javadoc. Use Enumerated type in entity.