Oracle Blob Exception with 11.1 jdbc driver

2009-01-29 Thread ericp56
I'm using the jdbc client included with instantclient 11.1 I am trying to persist a Blob (annotated with Lob, etc) and I'm getting the Exhausted Resultset exception. Should I using the Oracle 10.2 jdbc driver instead? -- View this message in context: http://n2.nabble.com/Oracle-Blob-Except

Self referencing Entity causes id already assigned value on entity save

2009-01-29 Thread mxc
Hi all, I have a simple node entity pretty much as follows - @Id @GeneratedValue private Integer id; private String name; @ManyToOne(fetch=FetchType.LAZY) private Node parent;

Re: Access Oracle Sequence using OpenJPA

2009-01-29 Thread get_it_done
Thanks for the below suggestion. More inclined towards openJPA approach. Can you provide more details as to how to let spring inject the below JDBC configuration into a DAO class. Alexey Ousov wrote: > > Hello. > This one works fine with Oracle: > Number n = (Number)session.createNativeQuer

Re: [URGENT] performance issues

2009-01-29 Thread is_maximum
Thanks Pinaki, I was really stuck and abandoned any hope but your useful hints on classpath issues saved me. but today we had another weird day!!! First I create version field for some tables and put @Version on them and awfully everything got worst. even a simple insert with different account (

Re: [URGENT] performance issues

2009-01-29 Thread Pinaki Poddar
Hi, > but using build-time enhancer. I tried ant-runner for maven but was unable > to enhance my classes > if I don't give any class name I get this message: A few minutes of digging with classpath and other beasts to enhance at build-time will save you a lot of pain and gain performance. Enha

controlling number of SQL operations

2009-01-29 Thread Adam Hardy
I am running a load test for a performance-sensitive operation and I'm surprised by the number of SQL calls I am seeing, so I want to check that I have the JPA and OpenJPA config set up right. Hopefully someone can say if any of the SQL calls are avoidable. This is the entity model: Collate

Re: [URGENT] performance issues

2009-01-29 Thread is_maximum
Hi Pinaki, Well I am going to disable the locking and see the result if it works better and I'll feedback the result. but using build-time enhancer. I tried ant-runner for maven but was unable to enhance my classes if I don't give any class name I get this message: openjpa.Tool - No targets wer

Re: orderBy

2009-01-29 Thread Adam Hardy
Is there any chance that I'll be able to do this in the future (like JPA 2): testAnalysis.marketSystem.systemRun.market.symbol instead of writing a Comparator? Pinaki Poddar on 29/01/09 05:16, wrote: Hi, Check @OrderBy annotation in OpenJPA docs for something similia

Re: [URGENT] performance issues

2009-01-29 Thread Adam Hardy
Pinaki Poddar on 29/01/09 05:09, wrote: 2. Build-time enhancement i.e. to execute one command after compilation performs best and minimizes complexity of load-time-weaving. I have never understood what really makes people to avoid 'build-time enhancement' - especially when most of the apps are