Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Migration to Luna
Migration to Luna [message #1392382] Wed, 02 July 2014 08:46 Go to next message
Bertin Kiekebosch is currently offline Bertin KiekeboschFriend
Messages: 330
Registered: August 2011
Senior Member
Hi,

i am testing migrating a project to Luna by just copying some code into a newly created Luna project.

There are some incompatibilities in the area of CodeTypes, LookupCalls, AbstractTable.getColumns and more. In bugzilla I see that these topics are marked with 'migration' but I cannot find any additional migration guidelines for these topics.

Are there already migration guidelines for these topics?


Regards Bertin

Re: Migration to Luna [message #1392391 is a reply to message #1392382] Wed, 02 July 2014 09:01 Go to previous messageGo to next message
Matthias Nick is currently offline Matthias NickFriend
Messages: 197
Registered: August 2013
Senior Member
Hi Bertin,
maybe you will find some useful information here

Best regards,
Matthias
Re: Migration to Luna [message #1392405 is a reply to message #1392391] Wed, 02 July 2014 09:27 Go to previous messageGo to next message
Stephan Leicht Vogt is currently offline Stephan Leicht VogtFriend
Messages: 104
Registered: July 2015
Senior Member
I recently migrated our app and I wrote down the migration I had done (Its Markdown-Formatted):

##Servletfilter
See: https://wiki.eclipse.org/Scout/NewAndNoteworthy/4.0#Servletfilter

* bundle `org.eclipse.scout.http.servletfilter` -> `org.eclipse.scout.rt.server.commons` in *.MF and *.product.
* `org.eclipse.scout.http.servletfilter.filters` -> `org.eclipse.scout.rt.server.commons.filters` in plugin.xml
* `org.eclipse.scout.http.servletfilter.security.*` -> `org.eclipse.scout.rt.server.commons.servletfilter.security.*` in *.java, plugin.xml
* `org.eclipse.scout.http.servletfilter.helper.*` -> `org.eclipse.scout.rt.server.commons.servletfilter.helper.*` in *.java, plugin.xml

##SdkCommand
See: https://bugs.eclipse.org/bugs/show_bug.cgi?id=420062

* `@FormData(value = MyFormData.class, sdkCommand = SdkCommand.CREATE)` -> `@FormData(value = MyFormData.class, sdkCommand = FormData.SdkCommand.CREATE)`

##Code Type generic type
See: https://bugs.eclipse.org/bugs/show_bug.cgi?id=420491

* `CodeRow[]` -> `List<? extends CodeRow>`
* `IDataModelAttribute[]` -> `List<IDataModelAttribute>`
* `AbstractSqlCodeType {` -> `AbstractSqlCodeType<ICodeType<Long>> {`
* `(\w*)Code\[\]` -> `List<? extends $1Code>`
* `Class<? extends LookupCall>` -> `Class<? extends ILookupCall<?>>`
* `Class<? extends ICodeType<?>>` -> `Class<? extends ICodeType<?, ?>>`

##Server to server proxy service-tunnel
See: https://bugs.eclipse.org/bugs/show_bug.cgi?id=405353

Update your code (search for deprecated warnings), here a not exhaustive list of what you have to change:
* In `ClientSession.execLoadSession()`
* Old: `setServiceTunnel(new HttpServiceTunnel(this, getBundle().getBundleContext().getProperty("server.url")));`
* New: `setServiceTunnel(new ClientHttpServiceTunnel(this, UriUtility.toUrl(getBundle().getBundleContext().getProperty("server.url"))));`

* If you have extended `org.eclipse.scout.rt.client.servicetunnel.http.HttpServiceTunnel` you should now extend from `org.eclipse.scout.rt.client.servicetunnel.http.ClientHttpServiceTunnel`.

* `org.eclipse.scout.rt.client.servicetunnel.IServiceTunnel` is now `org.eclipse.scout.rt.client.servicetunnel.http.IClientServiceTunnel`

##Some cleanup-regex'es

Search / Replace

* `(public static final )\w*( ID = \d*)L?l?;`
* `$1long$2L;`

* `\R(\R\s*private static final long serialVersionUID = 1L;\R?)(\s*public static final Long ID = )`
* `$1\R$2`

* `(@Order\(\d*\.\d*)f\)`
* `$1)`

* `\R(\R\s*private static final long serialVersionUID = 1L;)`
* `$1`


---

Hope that helps.

Greetings
Stephan

[Updated on: Wed, 02 July 2014 09:27] by Moderator

Report message to a moderator

Re: Migration to Luna [message #1392426 is a reply to message #1392405] Wed, 02 July 2014 10:11 Go to previous message
Bertin Kiekebosch is currently offline Bertin KiekeboschFriend
Messages: 330
Registered: August 2011
Senior Member
Yes that helps.

Regards Bertin
Previous Topic:Simple db application with Scout and Oracle Database 11g Express edition
Next Topic:ESC Keyboard Key not working if no field is selected
Goto Forum:
  


Current Time: Fri Apr 19 02:39:11 GMT 2024

Powered by FUDForum. Page generated in 0.01896 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top