Win a copy of Head First Android this week in the Android forum!

Dupon David

Greenhorn
+ Follow
since Aug 11, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dupon David

Hi

I'm facing problem while reading properties file with java program in NETBEANS IDE. How can i run this program correctly in NetBeans please help me out.The Program is give below (all files are in "ehr4research2" package)


& laConnexionBD.properties files content

i have error:


thank you in advance
13 years ago
Hello,
In the Session Bean TermProjFacade.java i have:
And to test, i use this servlet:

I remain at your disposal, for more information, thank you very much
were there any suggestions made? Any help is greatly appreciated
Hello
I changed the name of the primary key in SnomedInter I put SNOMEDINTER_AUIS at the place of AUIS, in the same way for TERMSOURCE_AUIW in the place of AUIW to avoid having the same name as the key foreign in TermProj, my code became as follows:
TermProjPK.java

TermProj.java

TermSource.java


SnomedInter.java


this time I have the following error:


were there any suggestions made? Any help is greatly appreciated

With the same column name in the exception?

Yes

Looks like there are just too many things named "auis" in your code fragment, and by changing them one by one you can see which ones are causing the problem...

thank you, it is what I have make, and I put :in TermProj entity and in TermProjPk class.
and now I have the following error

there are other people who have the same error that me, but they did not have an answer


http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3994778http://forum.hibernate.org/viewtopic.php?t=967702&sid=5ffcb0cf915bf975182e97b24eea1741

were there any suggestions made? Any help is greatly appreciated
[ December 20, 2006: Message edited by: Dupon David ]
Hello,
I changed my table for the keys are different but I always have the same problem
Hello
if I postulated in this forum, it is that I did not find a solution elsewhere
here my code:
TermProjPK.java
TermProj.java

TermSource.java

SnomedInter.java

I always have the same error:


were there any suggestions made? Any help is greatly appreciated
Hello,
I have practically the same problem:

http://jira.jboss.com/jira/browse/EJBTHREE-39?page=all

I want to know, how you solved it please
thank you in advance
failed to lazily initialize
hello
here my servlet:
when I run the server, I obtain the following error:

knowing that my session bean:


Thank you
Hello,
in chapter 8 and exactly in the part "Mapping RelationShip State", you use @idClass. Whereas in my code I use @Embeddable and @EmbeddedId I thus seek a solution with my problem of joint for the following code:




I have the error message according to
,
thank you in advance
Hi,
In fact, the annotation @ManyToMany does not function for my case, because my table WASNMI is not simply a table of joint, but it contains of another fields that the foreign keys.

I implemented as follows:

TermSource and SnomedInter must have a collection of TermProj, and not of TermProPK. In the same way, TermProj must only have a direct bond towards 1 TermSource and 1 SnomedInter in addition. It is HIBERNATE which is given the responsability to manage the keys themselves! Us, only the objects are managed.

TermSource :


SnomedInter :


TermProjPk :


TermProj :



it remains me to be known how I can reach a SnomedInter object to leave a TermSource object!! I tested implementer as follows:



an idea?

[ November 17, 2006: Message edited by: Dupon David ]

[ November 17, 2006: Message edited by: Dupon David ]
[ November 17, 2006: Message edited by: Dupon David ]
Hello.
In the Pro EJB 3 book, and more precisely in the chapter 4 "OBJECT-RELATIONAL MAPPING", one do not treat the case of a table of association which contains elements other than the primary keys. Here a problem that I met and who I will be content if somebody can propose a solution to me.

I will try to reformulate my question I want to make request EJB3 QL with joint.

here my tables:



Knowing that I have the following table which has like cl�s primary both cl�s primary of the tables the preceding one.



knowing that cardinality between these tables and ManyToMany, my question and to know if so that I can make a join

between my tables I must create tables interm�diates which contain that the primary keys like umlssnmi_wasnmi kind

and whoart_wasnmi for example, and to make @JoinTable; or the table "wasnmi" will join the tables.

I tried to implement :

For table WHOART:

For UMLSSNMI table:



The TermProjPK class which contains the primary keys of table WASNMI:



For WASNMI table:



That does not function, because I do not know how I can reach the fields ` MODIF' and ` SRC' of the table ` WASNMI' starting from TermSource object.



Somebody already made there?. I thank you in advance

[ November 16, 2006: Message edited by: Dupon David ]
[ November 16, 2006: Message edited by: Dupon David ]
Hi,
I thank you for this solution which appears tempting,
but my superior want imperatively that I use EJB3 with JBoss 4.0.4 and hibernate.
would have an other solution? I thank you in advance
Hello.
as I still did not solve my problem, I will try to reformulate my question I want to make request EJB3 QL with joint.
here my tables:



Knowing that I have the following table which has like cl�s primary both cl�s primary of the tables the preceding one.



knowing that cardinality between these tables and ManyToMany, my question and to know if so that I can make a join

between my tables I must create tables interm�diates which contain that the primary keys like umlssnmi_wasnmi kind

and whoart_wasnmi for example, and to make @JoinTable; or the table "wasnmi" will join the tables.

I tried to implement :

For table WHOART:

For UMLSSNMI table:



The TermProjPK class which contains the primary keys of table WASNMI:



For WASNMI table:



That does not function, because I do not know how I can reach the fields ` MODIF' and ` SRC' of the table ` WASNMI' starting from TermSource object.



Somebody already made there?. I thank you in advance

[ November 15, 2006: Message edited by: Dupon David ]

[ November 17, 2006: Message edited by: Bear Bibeault ]
[ November 17, 2006: Message edited by: Bear Bibeault ]