- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsI am currently rewriting my entity beans from 2.1 to 3.0 version. I do it with Netbeans J2EE project, the stuff is generated from datasource. Everything goes nice until I try to use (stacktrace in code section).
I assume it is problem of 'text' field from Postgres, my table contains. I have read there was a problem with Hibernate & Postgres - blobs were converted into big objects etc. But it was a bug from 2003 or 2005! And also I have been using this combo for last 3 years without problems. The only change I made is EJB, 2.1 to 3.0.
This is my persistence.xml:
<persistence version="1.0" xmlns="http://java.sun.com
<persistence-unit name="CustomerAccountPU" transaction-type="JTA">
<jta-data-source>PostgresD
<properties/>
</persistence-unit>
</persistence>
And postgresDS is exactly the same I've used for last 3 years:
<datasources>
<local-tx-datasource>
<jndi-name>PostgresDS</jnd
<use-java-context>false</u
<connection-url>jdbc:postg
<driver-class>org.postgres
<user-name>user</user-name
<password>password</passwo
<transaction-isolation>TRA
</local-tx-datasource>
</datasources>
My configuration is: JBoss 4.2.3 with EJB3 + Postgresql 8. I test my new beans inside Seam project - maybe this matters as well.
What should I change then?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: szczecinPosted on 2009-01-07 at 04:30:47ID: 23313953
I have done it by changing annotation in my entity bean class. One of the fields was byte[] in database, NetBeans during generation of bean from datasource marked this filed with annotation @Lob so it's being treated as Large Object. Removing this annotation helped for now.
Still I could have problems if the column really contain large amount data (like images). In this case it's storing just password hash.