About detach

I am frequently having an error when merging a detached object outside of a transaction. (Is this allowed? I am not trying to modify the object, just read data from it.) Here is a test case:
package com.experiments;
import javax.persistence.*;
import java.util.HashMap;
public class

Fixed a bug of duplicating new objects during merge. Fixed a username/password issue in using EntityManagerFactory's getMetamodel. Fixed a bug in detachment of hollow objects on close (issue #799). Fixed a Doctor exception (issue #796). Fixed a Doctor bug in checking byte[] arrays (issue #811

Added support of nested paths in JOIN FETCH. Added support of persisting collections and maps of user defined types. Added support of Google (Guava) collections. Added support of inheritance of ID fields. Added support of disabling detachment on rollback in JPA. Added support of using entity