"cooper" wrote : I am not using postgres so I cannot test it. If you know what to 
modify to make it working give us the changes, that would be very helpfull

I took a look at it this morning trying to compare the way the EJB's are done in the 
news module with how they were done in FAQ. In the nuke_faq table, the default value 
for pn_id is set to the nextval() of a sequence. Since this is all done thru CMP and 
xdoclet though, i'm not sure exactly how to make that happen when the table is 
created. There are a couple of pieces (xdoclet?) for primary key and foreign key that 
aren't in the TopicEJB.java.  Something like this...

  | @jboss.unknown-pk 
  | @ejb.pk
  | 
I tried making similar changes to the TopicEJB.java as stuff that i saw in the 
FaqEJB.java, but ran into some trouble. First it was the return type from ejbCreate, 
which i tried changing. Then it ran into problems with the StoryEJB. It seems that 
changing the TopicEJB will filter down into the other objects and how they deal with 
primary keys. So it will probably need a whole overhaul by someone that understands 
EJB and CMP much more than myself. Maybe Howard can do same thing he did with the FAQ 
module? doubt he has the time now, but it would be nice, if FAQ is really going to be 
a model for how we do it across the board.

sorry i couldn't be of more help... .joe

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835236#3835236

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835236


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to