ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sundar Sankaranarayanan" <Sundar.Sankaranaraya...@phoenix.edu>
Subject RE: Problem with raw type.
Date Fri, 02 May 2008 16:49:54 GMT
     If you are getting  this in eclipse, please click on the yellow
warning icon on the left. You should be auto suggested on what to do. It
would prompt you to add<E> or add @SuppressWarning("unchecked").

Like I said earlier, this has nothing to do with Ibatis. 

Warm Regards,
Sundar Sankarnarayanan
Software Engineer
@University of Phoenix

-----Original Message-----
From: Sara [mailto:jdev02@telenet.be] 
Sent: Friday, May 02, 2008 9:27 AM
To: user-java@ibatis.apache.org
Cc: cirwin@ll.mit.edu
Subject: RE: Problem with raw type.

Hi Irwin,

No I don't get an Exception, the warning that I get is in Eclipse.
The application works fine when I test it, I thought there is maybe a
better way when I get the warning.
I am new to Ibatis therefore I post my message.


-----Original Message-----
From: Irwin, Constance [mailto:cirwin@ll.mit.edu]
Sent: vrijdag 2 mei 2008 18:07
To: user-java@ibatis.apache.org
Subject: RE: Problem with raw type.


Are you getting an exception? It looks like you are getting a warning
related to the list data structure:

                      List resultList =

Btw, is this Hibernate or some other DAO code?

From: Sara [jdev02@telenet.be]
Sent: Friday, May 02, 2008 11:51 AM
To: user-java@ibatis.apache.org
Subject: Problem with raw type.

Hi all,

I have a question about a select query.
This is the source that I use:

  try {
      dao.DepartmentDAO DepartDao = (dao.DepartmentDAO)
      model.DepartmentExample DepartExample = new
      List resultList = DepartDao.selectByExample(DepartExample);

      if (resultList.size() > 0) {
        departmentRow = new DepartmentRow[resultList.size()];
        for (int i = 0; i < resultList1.size(); i++) {

This is the warning that I get:
List is a raw type. References to generic type List<E> should be

Would anyone be so kind to give me some information or an example to
solve this?


View raw message