adding ejb-jpa example
added dto example
added locking, etc.
documentation edits