フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Friends Team
how to add columns in service builder
2012/09/10 2:24
答え

Friends Team

ランク: Junior Member

投稿: 97

参加年月日: 2012/09/03

最近の投稿

After deploying servive builder how to add columns in service builder...........
Rewati Raman
RE: how to add columns in service builder
2012/09/10 2:41
答え

Rewati Raman

ランク: Junior Member

投稿: 97

参加年月日: 2012/02/24

最近の投稿

Hi kumar g,

just open service.xml and add column and build service and deploy again

Regards,
Rewati Raman
Ketan Patel
RE: how to add columns in service builder
2012/09/10 4:21
答え

Ketan Patel

ランク: Junior Member

投稿: 72

参加年月日: 2012/05/04

最近の投稿

Hi Kumar g,

can you please explain what's the problem you are facing?
otherwise the suggestion given by Rewati is correct.
David H Nebinger
RE: how to add columns in service builder
2012/09/10 9:01
答え

David H Nebinger

Community Moderator

ランク: Liferay Legend

投稿: 11793

参加年月日: 2006/09/01

最近の投稿

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...
Harish Kumar
RE: how to add columns in service builder
2012/09/10 10:05
答え

Harish Kumar

ランク: Expert

投稿: 474

参加年月日: 2010/07/31

最近の投稿

Hi David,

1
2However, there is no support for updating the database side after the initial deployment. You must do this yourself.
3
4You 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.
Friends Team
RE: how to add columns in service builder
2012/10/30 22:33
答え

Friends Team

ランク: Junior Member

投稿: 97

参加年月日: 2012/09/03

最近の投稿

hi thanks for reply but once deloy the service .xml how can we add columns ?
Gaurav Jain
RE: how to add columns in service builder
2012/10/30 22:39
答え

Gaurav Jain

ランク: Regular Member

投稿: 146

参加年月日: 2011/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
Harish Kumar
RE: how to add columns in service builder
2012/10/30 22:41
答え

Harish Kumar

ランク: Expert

投稿: 474

参加年月日: 2010/07/31

最近の投稿

as Rewati said just open service.xml and add column and build service and deploy again
Friends Team
RE: how to add columns in service builder
2012/10/30 22:43
答え

Friends Team

ランク: Junior Member

投稿: 97

参加年月日: 2012/09/03

最近の投稿

build.auto.upgrade flag to true, this flag where it is getting plz guide me
Jitendra Rajput
RE: how to add columns in service builder
2012/10/30 23:09
答え

Jitendra Rajput

ランク: Liferay Master

投稿: 873

参加年月日: 2011/01/07

最近の投稿

Check your service.properties file to change build.auto/upgrade property.