I
is0871
public List loadNotes(Long id)
{
List notes = new ArrayList() ;
try
{
notes = (List) someLocalHome.findByPrimaryKey(id) ;
if (notes != null)
{
Iterator i = notes.iterator() ;
while (i.hasNext())
{
DummyBean bean = new DummyBean( (DummyLocal) i.next()) ;
System.out.println("found bean: " + bean) ;
notes.add(bean) ;
}
}
else
{
System.out.println("Could not find any notes!") ;
}
}
catch(Exception e)
{
e.printStackTrace() ;
}
return notes ;
}
If you can figure out whats wrong in the above code(wihout compiling),
then you're the kind of person we're looking for. If interested in
working in a famous special effects house then apply online here:
http://www.ilm.com/jobs/it/20050104.html
{
List notes = new ArrayList() ;
try
{
notes = (List) someLocalHome.findByPrimaryKey(id) ;
if (notes != null)
{
Iterator i = notes.iterator() ;
while (i.hasNext())
{
DummyBean bean = new DummyBean( (DummyLocal) i.next()) ;
System.out.println("found bean: " + bean) ;
notes.add(bean) ;
}
}
else
{
System.out.println("Could not find any notes!") ;
}
}
catch(Exception e)
{
e.printStackTrace() ;
}
return notes ;
}
If you can figure out whats wrong in the above code(wihout compiling),
then you're the kind of person we're looking for. If interested in
working in a famous special effects house then apply online here:
http://www.ilm.com/jobs/it/20050104.html