I think I figured out the problem.  The problem solution is not along the lines of how 
to get Xdoclet to tell JBoss what to do, but rather change my approach to the problem. 
 Quite frankly, I've only been working with EJBs for a month, so I'm not even a 
'newbie'.....

Bear with me on this one.......  I have spent many years developing applications where 
I design a data model and then an (application) object model, complete with DB I/O 
code to manipulate the data model.  This type of approach allows one to create an 
object model and code to fill it from a rather arcane data model, as long as one 
writes the DB I/O code.

However, I was tired of writing DB I/O code and wanted someone else to do it, hence my 
desire to use CMP-based EJBs.  Soooo, I went about designing my data model, complete 
with composite keys, etc. and tried to coax JBoss (using CMP EJBs) to manipulate it. 

<side-thought>
Quite frankly, designing an application server model (like CMP-based EJBs) to do DB 
I/O for someone else would seem like a daunting task.  Adding composite keys to that 
mix almost seems incomprehensible.....  I wouldn't know where to begin to design a 
system (or a specificiation that someone else could write a system on) to do this..... 
 But if someone wrote this application server, I'll use it!
</side-thought>

I found it possible to create CMP-based EJBs with composite keys at one level of my 
product hierarchy.  However, I was having trouble with composite keys at multiple 
levels.  I was trying to force JBoss into submission (e.g., 'do what I want!!!').  
However, that's when I realized the error of my approach (at about 2 AM).

I'm going to change my approach (maybe in a couple of days, I need to step away from 
this problem for a day... :| ) to the following: design the object model and CMP-based 
EJBs on that model.  Then, design a data model that fits the data I have from my 
client.  This means tweaking the data model schema structure.  Fortunately, this is a 
new application so I'm at liberty to do this.

I know this approach will not appease those who are trying to use CMP-based EJBs on an 
existing and probably complex data model.  Unfortunately, you may have to write BMP 
EJBs for some of those solutions.  But like I said, I'm not even a newbie at EJBs so 
take my advice with a grain of 'NaCl'.

Any other thoughts?

I'm going back to bed.....

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

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


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to