掲示板
how to add columns in service builder
11年前 に kumar g によって更新されました。
how to add columns in service builder
Junior Member 投稿: 95 参加年月日: 12/09/03 最新の投稿
After deploying servive builder how to add columns in service builder...........
11年前 に Rewati Raman によって更新されました。
RE: how to add columns in service builder
Junior Member 投稿: 97 参加年月日: 12/02/24 最新の投稿
Hi kumar g,
just open service.xml and add column and build service and deploy again
Regards,
Rewati Raman
just open service.xml and add column and build service and deploy again
Regards,
Rewati Raman
11年前 に kumar g によって更新されました。
RE: how to add columns in service builder
Junior Member 投稿: 95 参加年月日: 12/09/03 最新の投稿
hi thanks for reply but once deloy the service .xml how can we add columns ?
11年前 に Gaurav Jain によって更新されました。
RE: how to add columns in service builder
Regular Member 投稿: 145 参加年月日: 11/01/31 最新の投稿kumar g:
hi thanks for reply but once deploy the service.xml how can we add columns ?
Liferay manages the changes in service.xml with some properties like build number and build date. And new changes made in it, will be checked by liferay whenever you will rebuild your service and redeploy it and accordingly it will update db table as needed/changed in your service.xml
11年前 に Harish Kumar によって更新されました。
RE: how to add columns in service builder
Expert 投稿: 483 参加年月日: 10/07/31 最新の投稿
as Rewati said just open service.xml and add column and build service and deploy again
11年前 に Ketan Patel によって更新されました。
RE: how to add columns in service builder
Junior Member 投稿: 72 参加年月日: 12/05/04 最新の投稿
Hi Kumar g,
can you please explain what's the problem you are facing?
otherwise the suggestion given by Rewati is correct.
can you please explain what's the problem you are facing?
otherwise the suggestion given by Rewati is correct.
11年前 に David H Nebinger によって更新されました。
RE: how to add columns in service builder
Liferay Legend 投稿: 14915 参加年月日: 06/09/02 最新の投稿kumar g:
After deploying servive builder how to add columns in service builder...........
You must do this manually. When a service builder entity is deployed the first time and you have the build.auto.upgrade flag to true, the entities will be created in the database.
However, there is no support for updating the database side after the initial deployment. You must do this yourself.
You could go the Liferay route for automatic upgrades, but most of the time I find this to be overkill, especially if it is not something that you're going to throw into the marketplace, for example.
Just use your sql tool to make the changes to be in sync with the entity changes you're making in service builder and continue with your forward development.
Alternatively you could use the expando stuff to add attributes after the fact, but I tend to avoid this for business entities. I think it's okay to use this to extend Liferay entities (it's their entity you're extending), but would want to avoid mixing my data w/ Liferay's data as much as possible.
But the choice is yours...
11年前 に Harish Kumar によって更新されました。
RE: how to add columns in service builder
Expert 投稿: 483 参加年月日: 10/07/31 最新の投稿
Hi David,
I've done this entity extension with Liferay 6.1EE GA1 and it was quite smooth.
However, there is no support for updating the database side after the initial deployment. You must do this yourself.
You could go the Liferay route for automatic upgrades, but most of the time I find this to be overkill, especially if it is not something that you're going to throw into the marketplace,
I've done this entity extension with Liferay 6.1EE GA1 and it was quite smooth.
11年前 に kumar g によって更新されました。
RE: how to add columns in service builder
Junior Member 投稿: 95 参加年月日: 12/09/03 最新の投稿
build.auto.upgrade flag to true, this flag where it is getting plz guide me
11年前 に Jitendra Rajput によって更新されました。
RE: how to add columns in service builder
Liferay Master 投稿: 875 参加年月日: 11/01/07 最新の投稿
Check your service.properties file to change build.auto/upgrade property.