createBlob « Data Type « JPA Q&A





1. Problem with Hibernate.createBlob() in 3.5-Final    forum.hibernate.org

@Entity @Table(name="ITEM") public class Item { @Id @GeneratedValue @Column(name="ITEM_ID") private Long id = null; @Lob @Column(name="BLOB_LOCATOR") private Blob blobLocator; public Item() {} public Long getId() ...

2. hibernate-3.6: createBlob without session?    forum.hibernate.org

3. Core 4.0.CR2: Hibernate.CreateBlob    forum.hibernate.org

4. Why Hibernate give me an Exception if I use createBlob ?    forum.hibernate.org

Senior Joined: Wed Dec 17, 2003 4:24 am Posts: 188 2.1.6 Session s=HibernateUtil.currentSession(); Transaction t=s.beginTransaction(); Integer tradeid=(Integer)s.save(trade); log.info("Save "+tradeid+" trade complete !!! -----------------------------"); t.commit(); HibernateUtil.closeSession(); 19:31:07,632 INFO SettingsFactory:129 - cache provider: net.sf.hibernate.cache. EhCacheProvider 19:31:07,652 ...