Map properties = new HashMap();
properties.put("javax.persistence.jdbc.driver", "org.firebirdsql.jdbc.FBDriver");
properties.put("javax.persistence.jdbc.url", "jdbc:firebirdsql://localhost:3050/" + DBpath);
properties.put("javax.persistence.jdbc.user", "dbuser");
properties.put("javax.persistence.jdbc.password","dbpassword");
Persistence.createEntityManagerFactory("DB_manager", properties);
DB_ondulatiPUEntityManager = Persistence.createEntityManagerFactory("DB_manager",properties).createEntityManager();
我可以正确创建实体管理器问题是我使用的用户已在数据库中授予特定角色,我如何在属性中指定此角色?否则我会收到错误“没有权限读取/选择对 TABLE 的访问...”