Skip to main content
deleted 168 characters in body
Source Link
gaborsch
  • 15.8k
  • 6
  • 40
  • 50

The problem is that your objects are package private. Make them public, and you can access them.

You can see it from the blue color of the debugger screenshot.

UPDATE:

You have a resultset with 2 columns.

Object[] result= query.list().get(0); BigDecimal number1 = (BigDecimal) result[0]; BigDecimal number2 = (BigDecimal) result[1]; 

The problem is that your objects are package private. Make them public, and you can access them.

You can see it from the blue color of the debugger screenshot.

UPDATE:

You have a resultset with 2 columns.

Object[] result= query.list().get(0); BigDecimal number1 = (BigDecimal) result[0]; BigDecimal number2 = (BigDecimal) result[1]; 

UPDATE:

You have a resultset with 2 columns.

Object[] result= query.list().get(0); BigDecimal number1 = (BigDecimal) result[0]; BigDecimal number2 = (BigDecimal) result[1]; 
added 217 characters in body
Source Link
gaborsch
  • 15.8k
  • 6
  • 40
  • 50

The problem is that your objects are package private. Make them public, and you can access them.

You can see it from the blue color of the debugger screenshot.

UPDATE:

You have a resultset with 2 columns.

Object[] result= query.list().get(0); BigDecimal number1 = (BigDecimal) result[0]; BigDecimal number2 = (BigDecimal) result[1]; 

The problem is that your objects are package private. Make them public, and you can access them.

You can see it from the blue color of the debugger screenshot.

The problem is that your objects are package private. Make them public, and you can access them.

You can see it from the blue color of the debugger screenshot.

UPDATE:

You have a resultset with 2 columns.

Object[] result= query.list().get(0); BigDecimal number1 = (BigDecimal) result[0]; BigDecimal number2 = (BigDecimal) result[1]; 
Source Link
gaborsch
  • 15.8k
  • 6
  • 40
  • 50

The problem is that your objects are package private. Make them public, and you can access them.

You can see it from the blue color of the debugger screenshot.