Re: problem using subclass object as query parameter

2010-09-26 Thread javadia...@gmail.com
Hi again everyone I could not resolve this problem. I have to change all similar queries in my application to something like this(select b from Branch b where b.id=:branchID),This time it works. I think this is an openJPA bug .Do you agree? Anyone can test it . Thanks Ahad -- View this message i

Re: problem using subclass object as query parameter

2010-09-18 Thread javadia...@gmail.com
I am sorry for being late I removed the type column (private BaseBranchType baseBranchType) form BaseBranch class but the problem still exists mike. -- View this message in context: http://openjpa.208410.n2.nabble.com/problem-using-subclass-object-as-query-parameter-tp5506089p5545802.html Sent f

Re: problem using subclass object as query parameter

2010-09-08 Thread javadia...@gmail.com
Hi mike thank you I am using openJPA 1.2.1 and I also have tested it with 1.2.2 . It doesn't work with both of them. I have tested it with runtime and build time enhancement.The problem exists with both. and my persistence.xml is something like this ---

problem using subclass object as query parameter

2010-09-07 Thread javadia...@gmail.com
Hello everyone I have a problem using inheritance in OpenJPA. Here is my code @Entity @Table(name = "BASEBRN") @Inheritance(strategy=InheritanceType.JOINED) @DiscriminatorColumn(name="TYPE",discriminatorType=DiscriminatorType.INTEGER) public class BaseBranch { @Id @Column(name

Re: java.lang.StackOverflowError Exception after enabling cach

2009-09-08 Thread javadia...@gmail.com
Hi Excuse me for the late reply Thanks for your replies and helps My problem was solved . I have an embeddable class that I use it as embedded property in some entity class and we forgot to list it on the persistence.xml file and then enhancer didn’t enhance it .I think this embeddable class w

Re: java.lang.StackOverflowError Exception after enabling cach

2009-08-18 Thread javadia...@gmail.com
hi Thank your for your reply I use glassfish app server for deploying my application . I think glassfish as java EE container itself do this .According to thread on Address: http://markmail.org/message/zlcq3lrj5jfolup7#query:glassfish%20javaagent%20openjpa+page:1+mid:qw7323mlldhlpr2e+state:result

java.lang.StackOverflowError Exception after enabling cach

2009-08-17 Thread javadia...@gmail.com
Hi I get the following Exception when I enable cache on my system and after tryng to get query data. please help me thanks regards Ahad Javadi javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean: java.lang.StackOverflowError at com.sun.ejb.containers.BaseCont