Scout Explorer and setting up a connection to MySQL [message #1810939] |
Thu, 22 August 2019 10:14 |
Faruk Caglar Messages: 33 Registered: August 2019 |
Member |
|
|
I just started with Eclipse Scout in order to evaluate if this could be the right framework for a new project. I have installed Eclipse IDE 2019-06 (4.12.0) and also the Eclipse Scout SDK (9.0.0.018_Simrel_2019_06) and went through the hello world tutorial as well as the Beginners Guide. I now just wanted to connect to a MySQL schema. Searching the internet for help was unfortunately not really successful. I found, that there should be a Scout Explorer, in which there is a technology part where I could change to a MySQL jdbc connection. Unfortunately the Scout perspective is not available in my installation and I have no idea why.
Could you give me a hint what I have to do?
Thanks in advance
[Updated on: Thu, 22 August 2019 10:16] Report message to a moderator
|
|
|
|
|
|
|
|
Re: Scout Explorer and setting up a connection to MySQL [message #1811052 is a reply to message #1811050] |
Mon, 26 August 2019 06:53 |
|
<<but I still get the answer: AbstractMySqlSqlService cannot be resolved to a type >>
This is a compile-error, right? This means, something with your project setup is not correct. Most likely your Maven dependencies are not properly loaded. Please make sure that the Error-view shows no POM/Maven errors and the Maven-dependency to "org.eclipse.scout.rt.server.jdbc" shows up in the project explorer of your .server module. That one is important: you cannot access the SQL service from the client module.
If the problem still persists, please post your pom.xml here and a screenshot of your IDE, showing the project explorer with the "Maven Dependencies" folder of your .server module visible.
You could also browse the source code on GitHub of the Contacts demo-app. There you'll see how to integrate the Derby driver/service. The setup for MySql is the same, and just requires another driver and another base class for the Sql service (which you already have).
Eclipse Scout Homepage | Documentation | GitHub
[Updated on: Mon, 26 August 2019 11:05] Report message to a moderator
|
|
|
|
Re: Scout Explorer and setting up a connection to MySQL [message #1811188 is a reply to message #1811178] |
Wed, 28 August 2019 10:35 |
|
You're welcome!
I guess the beginners guide is currently still the best place to learn something about the Scout wizards. In every chapter you learn something about a Scout concept like a "Page" or a "Form" and with that information in mind it's easy to understand what exactly the wizard does. Basically the wizards are just generators for stubs/boiler-plate code you typically need when you implement a new Page or Form.
Regarding that option "Create an abstract super page": I noticed that the check-box is not documented in the beginners guide and not displayed on the screenshot. Looks like we have to update this document, thanks for the hint :)
What the options does: instead of simply creating a class "HelloWorldPage" that extends AbstractPageWithTable, it creates an additional abstract class "AbstractHelloWorldPage" and the "HelloWorldPage" that extends AbstractHelloWorldPage. This is useful when you want to re-use an existing Page to display data but you want a different search form or you need to load the data from somewhere else or with other constraints.
An example from a CRM application would probably have an AbstractCustomerTablePage and two subclasses AllCustomerTablePage and OwnCustomerTablePage, where the latter restricts data to customers that have a relation to the logged in user.
Eclipse Scout Homepage | Documentation | GitHub
|
|
|
Powered by
FUDForum. Page generated in 0.05117 seconds