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
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
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
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
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
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
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
--
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
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
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
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
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
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
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
14 matches
Mail list logo