I’m attempting to replicate the “sample/web/airports_3/airport/airport-browse.xml” screen included in the “screen-manipulation” example.
What I’m trying to do is connect two grids (like master-details).
I get an error in this line:
Hello everyone.
I realized that the problem exists when the table as a PK (int, not null, identity).
If the PK is, for example, char(1) there is no problem.
Steps to reproduce:
Create table (in my environment is MSSQL)
CREATE TABLE [dbo].[TabTest](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Valore] nvarchar NOT NULL,
CONSTRAINT [PK_TabTest] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
Create new Cuba Project
Generate model with this table and choose to create a Single Screen type
Build project
You receive an error like this:
java:29: error: type argument TabTest is not within bounds of type-variable T
private CollectionDatasource<TabTest, IdProxy> tabTestsDs;
^
where T,K are type-variables:
T extends Entity declared in interface CollectionDatasource
K extends Object declared in interface CollectionDatasource
1 error
FAILED