• Post Reply Bookmark Topic Watch Topic
  • New Topic

CMP Relation 1:N  RSS feed

 
Rui Felix
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, My name is Rui I'm new in this forum... better I've never post nothing in a forum... but I've learn a lot from foruns so I really need some help now...

I'm doing Entity Beans, several cmp beans with relation between them.. when I do the relation from N:M everything goes well the cmp creates in my database motor the third table and create inside this one the fields that I want... the problem is that when I want to make relation 1:N he doesn't create de fk-key in the n side... Can someone help me please??? I really need this

I'm using eclips 2.1 with lomboz 3M7 plugin jboss 3.2.3 and the database is in PostgreSql 7.3.4

I think the code is good, because when I deplay jboss doesn't give me any error or exception

hele is the code :
For the 1 side


and the code for the N side


thanks
Rui Felix
 
Rui Felix
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please I really need to know what is happening some one can help me!!!
 
Leandro Melo
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that the attr

should be set only for unidirectional relations, and as i can see it's not your case.
 
Rui Felix
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I've solve the problem... the problem was from jboss, it doesn't update the tables..

So just go to the postgre and delete every table, and then deploy the project again..

Thanks anyway

Rui Felix
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!