telosystools

Open full view…

Can i alter the default naming convention for ${BEANNAME} ?

felixwenalvin
Tue, 11 Jun 2019 04:11:34 GMT

I am using telosys to generate entity based on data from posgres DB. Few of my table name have prefixes like m_city, t_user, etc.. Using the default naming (${BEANNAME}) always generate the entity as MCity.java, TUser.java. I want to eliminate the prefix so the entity will be named City.java, User.java. Is there any way to modify the naming convention that ${BEANNAME} provide to remove these prefixes?

Telosys Team
Thu, 13 Jun 2019 17:01:50 GMT

In your case the conversion concerns only a few entities, so the simplest way is to change the entity class name in your DB Model. You can do that with the db-model editor if you use Eclipse, or with Telosys-CLI you will have to edit the model file (XML file)