[ https://issues.apache.org/jira/browse/EMPIREDB-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17808055#comment-17808055 ]
Jan Glaubitz commented on EMPIREDB-415: --------------------------------------- Hi Rainer, sure, I found a workaround myself. But I considered this harmful and so wanted to open a bug for it. I just wanted to create an example and noted it is even worde. See my branch EMPIREDB-415 I just pused. In the basic example SampleApp.java on line 641. I ask the ListItem if it has a department id. Return true even it has only an employee ID. On line 642 I asked the list item to give me the ID on the department, expecting to get an exception to demonstate my problem. But its even worse - it returns the emplyee ID. I can't belive this is itended behaviour > DataListEntry.hasField / DataListHead.getColumnIndex > ---------------------------------------------------- > > Key: EMPIREDB-415 > URL: https://issues.apache.org/jira/browse/EMPIREDB-415 > Project: Empire-DB > Issue Type: Bug > Components: Core > Affects Versions: empire-db-3.1.0 > Reporter: Jan Glaubitz > Priority: Major > > I am using the DataListEntry and want to perform some action on it. So I > created a method that get a DataListEntry as parameter and want to check if I > it contains the correct column I need to use. > I did this by using DataListEntry.hasField. This method uses > DataListHead.getColumnIndex: > {code:java} > // Not found, try by name > return getColumnIndex(column.getName()); > {code} > turns out: it just checks for the name of the column. So if you check for > TABLE_X.ID it just checks for "ID". > I think this is a bug...? -- This message was sent by Atlassian Jira (v8.20.10#820010)