[JBoss-user] [EJB 3.0] - Re: Migration 4.0.4.CR2 -> 4.0.4.GA problem

2006-06-05 Thread DoubleDenim
Whenever I used @IndexColumn, the first value of the Persistent list is always null. refer to my "is this a bug?" post. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948943#3948943 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mod

[JBoss-user] [EJB 3.0] - (Lazy) Fetch using EJBQL

2006-06-05 Thread DoubleDenim
I am wondering if there is any neater way to do the following. | s = (Session) em.createQuery( | "SELECT DISTINCT s " + | "FROM Session as s " + | "WHERE s.sessionId = :sessionId") | .setParameter("sessionId", sessionId) | .getSingleResult(); | for(SessionSup

[JBoss-user] [EJB 3.0] - Re: Is this a bug?

2006-06-05 Thread DoubleDenim
I've figured it out.. The problem is being caused by the use of @IndexColumn. Which leads me to think that it cannot be used. If i get rid of it i end up with a org.hibernate.TransientObjectException. Any Ideas of a solution? @OneToMany(mappedBy="classA") @IndexColumn(name="classb_id") public L

[JBoss-user] [EJB 3.0] - Is this a bug?

2006-06-02 Thread DoubleDenim
Or am i doing something wrong? I brought this up in an earlier post to which no-one has responded so i took some time to create a test project. If anyone wants me to zip it up and send, let me know. The problem: lazy initialisation of the many part of a OneToMany always returns an extra recor

[JBoss-user] [EJB 3.0] - eager fetching problem.

2006-05-31 Thread DoubleDenim
This is different to my previous post on eager fetching. Within my entity manager class i have the following.. | List affiliateCommissions = session.getAffiliate().getAffiliateCommissions(); | ListIterator affiliateCommissionIterator = affiliateCommissions.listIterator(); | while(affili

[JBoss-user] [EJB 3.0] - Re: referencing session bean from servlet.

2006-05-27 Thread DoubleDenim
I've tried the following. ctx.lookup("ejb/Session/remote"); and get "ejb not bound" ctx.lookup("Session/remote"); and get "Session not bound" What is the correct syntax for this? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947153#3947153 Reply

[JBoss-user] [EJB 3.0] - Re: referencing session bean from servlet.

2006-05-27 Thread DoubleDenim
thanks for that. When you say yourEjbProject, do you mean the package path? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947147#3947147 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947147 --

[JBoss-user] [EJB 3.0] - referencing session bean from servlet.

2006-05-27 Thread DoubleDenim
In upgrading to 4.0.4.GA in the last day or so from 4.0.3SP1 if encountered a couple of issues in which i've had to refactor my code. I've sorted most of the problems out but now i'm left with one that baffles me. What I am trying to do is reference an ejb3 stateless session bean from within a

[JBoss-user] [EJB 3.0] - OneToMany fetchtype eager.

2006-05-27 Thread DoubleDenim
Hi, I just upgraded to 4.0.4.GA and had some issues with my fetch type of eager set on my OneToMany relationships. I solved the problem by removing them but am now wondering how i eagerly fetch ? I am referred to this posting. http://www.jboss.com/index.html?module=bb&op=viewtopic&t=82946 But

[JBoss-user] [JBoss Seam] - Re: generating seam files with hibernate tools prob.

2006-04-12 Thread DoubleDenim
i figured that i didn't need the connection details in the session factory section if i was only going to be creating seam code from existing ejb3 entities. I could be wrong on this. I've got the Enable hibernate ejb3/annotations checkbox ticked. That doesn't seem to be the problem. In my cons

[JBoss-user] [JBoss Seam] - Re: generating seam files with hibernate tools prob.

2006-04-11 Thread DoubleDenim
anyone got any ideas on this one before I jump out the window? I've solved the problem of "Hibernate Dialect must be explicitly set" by just adding the database connection details (even though I'm not using them). I'm left with this one org.hibernate.MappingException: An AnnotationConfiguration

[JBoss-user] [JBoss Seam] - generating seam files with hibernate tools prob.

2006-04-09 Thread DoubleDenim
I'm trying to generate my seam files from existing ejb3 entity pojos but when i go to run the console i get the following. | org.hibernate.MappingException: An AnnotationConfiguration instance is required to use | | Plus i also get this in the error list. Even though I am not gener

[JBoss-user] [JBoss Seam] - Re: Generating A CRUD application from EJB3 entities

2006-04-08 Thread DoubleDenim
Hi Bruce, Just wondering if you could help me out with a few pointers on how to do this. Regards Dan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936052#3936052 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3936052

[JBoss-user] [EJB 3.0] - fetch type eager

2006-04-06 Thread DoubleDenim
Hi There, I have used fetch type eager in the design of most of my pojos. This has created a problem in that in order to populate or instantiate these objects and subsequent child objects I am doing a large number of sql queries. Are there ways of minimizing these queries or do i just need to