Rob,

When you have multiple classes mapped to the same component then only one of those 
classes
can be public and the component should have the same name as the ONE public class that 
is
mapped to it.

So in this case you would map the Customer and Company classes to the Customer 
component.
Then set the Export Control for Customer to be 'Public' and the Export Control for 
Company
to be 'Implementation'.  Generate code now and it should work as you intended.

Regards

Vishu



Rob Vens wrote:

> I have a question concerning roundtrip engineering in a situation where
> more Java classes reside in one source file.
> Say I have class Customer and Company in one file named Customer.java. I
> generate a Rose model from this file and I see (correctly I assume) that
> both Customer and Company are assigned to the same Component Customer.
> Now I generate code from one class and two things happen:
> 1. I get an error telling me that name of class and compilation unit must
> match.
> 2. Rose renames Customer.java to Company.java.
>
> Does this imply that it is mandatory for Rose to have each java class in a
> separate source file?
>
> ************************************************************************
> * Rose Forum is a public venue for ideas and discussions.
> * For technical support, visit http://www.rational.com/support
> *
> * Admin.Subscription Requests: [EMAIL PROTECTED]
> * Archive of messages: 
>http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
> * Other Requests: [EMAIL PROTECTED]
> *
> * To unsubscribe from the list, please send email
> *
> * To: [EMAIL PROTECTED]
> * Subject:<BLANK>
> * Body: unsubscribe rose_forum
> *
> *************************************************************************

--
---
Annamalai "Vishu" Viswanathan  --  [EMAIL PROTECTED]
Rose Technical Support Engineer
Rational WW Customer Service


Check out http://www.therationaledge.com/ for tips and news for Rose users

---

************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages: 
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************

Reply via email to