现在,我能够读取persist.xml,并通过依赖注入@PersistenceUnit(unitName="...")sensor.setDeviceId(sd.getDeviceId()); entityManager.persistorg.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:807)
at org.hibernate.internal.SessionImpl.<
我的系统允许用户将他们的工作保存为草稿。我想在持久化数据之前对其进行加密。我在做这件事-AESEncryptorEngine a = new AESEncryptorEngine(k);然而,我需要持久化一个对象。有没有一种方法可以从对象中获取byte[]流?另外,考虑到移动设备的处理器/内存限制,我应该考虑哪种加密标准?太好了。
当调用EntityManager.persist()时,我得到一个错误: at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:596)at org.hibernate.ejb.AbstractEntityManagerImpl.persist(Abstract