Hi,
Thanks for the info. Appreciate so much with your valuable feedback as i can proceed with my development work.

Regards,

Jarrod



Wouter Zoons <[EMAIL PROTECTED]> wrote:

Hi Jarrod,

 

In this case you could specify the name for each table using tagged values: on an entity you may put the @andromda.persistent.table tagged value, give it the name you want to have it in the DB

It is not possible two use different prefixes on the same model.

 

Anyway, specify the table name for each entity, it’s not that much work.

 

-- Wouter

 

Ps: In the future please reply to the mailing list, other people might benefit from this info. thanks

 


From: jarrod gan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 12, 2005 2:47 AM
To: [EMAIL PROTECTED]
Subject: Re: [Andromda-user] Add table prefix to mapping.

 

Hi Wouter,

Thanks for the information. Anyway, I having problem generating with multiple module with different tableNamePrefix. My uml modeling contains different module and have a different table name prefix. For example, i might having two different class, but with two different table prefix

<class name="com.test.system.model.Country" table="SYS_COUNTRY">

<class name="com.test.security.model.User" table="SEC_USER">


How can this be achieved?


Regards,

Jarrod

Wouter Zoons <[EMAIL PROTECTED]> wrote:

hi Jarrod,

that's easy, just add the "tableNamePrefix" property to your hibernate (or
default) namespace

info about namespace properties can be found here:
http://team.andromda.org/docs/maven-andromda-plugin/properties.html#Defining_Namespace_Properties

an example of setting those properties in Ant:
http://team.andromda.org/docs/anttask.html

all the default properties can be found here:
http://team.andromda.org/docs/andromda-metafacades-uml/namespace.html

(you'll see that the "tableNamePrefix" property is there too)


good luck

-- Wouter

> Hi,
>
> How can I add table prefix to the generated mapping hbm.xml for every
> class. In this case, i want to add in sys_ prefix to my table.
>
>
>
> In my POJO class, i want to have Country class name only.
>
>
> Thanks
>
> Regards,
>
> Jiahan


Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.

Reply via email to