use of CollectionDatasource of XML file in Edit.java file without calling the SQL

Hi
I am wondering how i can use the collection data source in the Edit class that I already have initiated in screen xml.
for example, in xml i have the following data source:


 </collectionDatasource>
        <collectionDatasource id="articleSizeDs"
                              class="com.inteacc.gms.entity.ArticleSize">
            <query>
                <![CDATA[select e from inteaccgms$ArticleSize e
where e.articleSizeProfile.id = : ds$articleSizeProfileDs.id]]>
            </query>

How can I use the same datasource “articleSizeDs” in respective Edit.java file without calling the same SQL?

I am trying this way:


   @Inject
    protected CollectionDatasource<ArticleSize, UUID> articleSizeDs;?
  @Inject
    protected Table<SalesOrderSizeColour> salesOrderSizeColourTable;
   @Inject
    private ComponentsFactory componentsFactory;

  @Override
    public void init(Map<String, Object> params) {

  for(ArticleSize size: articleSizeDs.getItems()) {
            salesOrderSizeColourTable.addGeneratedColumn("articleSize", entity -> {
                Label label = componentsFactory.createComponent(Label.class);
                label.setValue(size.getName());
                label.setWidth("100%");
                return label;
            });

            linesTable.setColumnCaption(size.getName(), size.getName());

        }

    }

getting the following error:


projects/myproject/modules/gui/src/com/company/gms/gui/salesorder/SalesOrderEdit.java:35: error: illegal character: '\u2028'
    protected CollectionDatasource articleSizeDs;2028
                                                                    ^
/Users/Mortoza/studio-projects/myproject/modules/gui/src/com/company/gms/gui/salesorder/SalesOrderEdit.java:40: error:  expected
    @Inject
           ^
2 errors
 FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app-gui:compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:

Not sure what is wrong with the @Inject

Compiler error says that there is an illegal character at line 35 of SalesOrderEdit.java. Fix it.
And perhaps you don’t need to create generated columns in cycle.