I have read through the hibernate doc on how the persistence context is stored
and synchronized several times, but cannot find an answer. The main question
is this:
Can I persist a parent and its list of children in the same method?
i.e.
| public void persistParent(Parent p)
| {
|
Hello Cyril,
Thank you very much for your reply! I've implemented the code you have
suggested:
| ...
| @JoinColumn(name=dogID, insertable=false, updatable=false)
| ...
| @JoinColumn(name=kennelID, insertable=false, updatable=false)
|
Unfortunately it still leaves me with the same
For anyone wondering, I found this post:
http://www.jboss.com/index.html?module=bbop=viewtopict=76605
saying that Primary Foreign Keys are not supported yet. That was back in
February 2006 so maybe they will be supported soon?? Please please please??
View the original post :
Hi Everyone,
I'm getting the following error when I'm trying to persist multiple entities in
the same method. Does anyone know if I'm doing something wrong? I really
appreciate your help on this one, I can't seem to figure it out. Thanks in
advance!
(sorry I had to change example to Dogs,
Thanks, I'd like to write the benchmark, but I think I've gotten off topic.
I'm still trying to figure out how to call the stored procedure from my
EntityManager. Can you help me with that?
Thanks in advance!
View the original post :
I found the @NamedQuery annotation, and that will bind my query to a bean at
execution. Will this be as fast as a stored procedure?
Also, still wondering about stored procs in EJB 3.0. I know you can do a
callable in Hibernate 3 to call a stored proc. Is there an annotation or
something in
Hi Emmanuel,
Thank you for your reply. To be honest, it was always an assumption (so shame
on me for assuming!).
Do you have any numbers or a link I can visit to see the performance
differences?
Thanks!
View the original post :
Can anyone tell me how EJB 3.0 (via ORM) handles Stored Procedures (if at all)?
If not, how does it make up for the change in performance?
Last question, is it still possible to simply use BMP (via JDBC) to connect, or
does EJB 3.0 require CMP (via ORM)?
Thanks!
View the original post :
I've found that the problem is determining the primary key of my CatsDogs
class. I want my combined primary key to be the primary key of Cats and the
primary key of Dogs. I changed my code to:
| @ManyToOne(optional=false)
| @PrimaryKeyJoinColumn(name=cats_id,referencedColumnName=id)
|
Hi All,
I'm working with entity beans, and I've run into a problem with accessing
foreign keys that I cannot figure out for the life of me. The error I'm
getting is:
08:35:36,962 ERROR [SchemaUpdate] Unsuccessful: create table cats_dogs (cats
tinyblob not null, dogs tinyblob not null,
Great! Thank you very much for looking into it!
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3936434#3936434
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3936434
---
I'm getting this error using 4.0.4.CR2 (w/ EJB 3.0 RC 5 package). I noticed
it's similar to above. Any ideas?
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: jboss.ws:service=WebServiceDeployerEJB3
| State: FAILED
| Reason: java.lang.IllegalArgumentException:
Hi all,
I got this error using 4.0.4.CR2, after installing the EJB 3.0 RC5 package as
explained here:
http://www.jboss.com/index.html?module=bbop=viewtopict=80345
because of the problem explained here (between JBoss Eclipse IDE and 4.0.4.CR2)
Hi everyone, if you could help me with this I would be forever grateful! I've
exhausted searching on the internet, and I've been through the trailblazer 3
times (but it focuses on accessing a local bean, rather than remote)
I'm getting a NameNotFoundException that has nothing to do w/ it not
Thanks for your reply asack!
Prior to making any changes, here's what my jndi list() function returns:
| +- HelloWorld (proxy: $Proxy60 implements interface
com.contendi.helloworld.beans.HelloWorld,interface
org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)
|
I tried changing
OK, here's some more light shed on the situation.
I shut down jboss, removed my .jar file from the .../server/default/deploy/
directory (undeployed it), and re-started jboss.
Afterwards, as a sanity check, I ran the jndi list() function from the JMX
Console. Here is the return: (showing no
Ok,
Went back to old EJB 3.0 RC3 bean creation, just changed the lookup. I would
like to use RC5 or higher though, so if anyone knows why I couldn't create the
bean as described by the trailblazer, please let me know. FYI, my remote
interface after the change became:
| import
Hi everyone,
I am running Mac OS X 10.4.
About a week ago, I had been receiving this error using JBoss AS 4.0.3SP1:
| javax.naming.CommunicationException: Could not obtain connection to any of
these urls: 10.0.1.6:8080 and discovery failed with error:
javax.naming.CommunicationException:
Seems that using 4.0.4.CR2 and installing EJB 3.0 with clustering ended this
problems. New problems arise, see new posting.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3935327#3935327
Reply to the post :
19 matches
Mail list logo