You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to add termination lease request. To achieve this, I want to find the current lease id of the login student. So I find all the leases of login student. And find the lease whose status is current. But
But the return Leases List is null. Actually I put one lease under the student.
public Lease queryCurrentbyStudentId(int sid) {
// TODO Auto-generated method stub
List Leases=this.queryLeasebyStudentId(sid);
System.out.println(sid);
for (Lease element : Leases) // or sArray
{
if(element.getStatus().equals("current"))
return element;
}
return null;
}
The text was updated successfully, but these errors were encountered:
Do we need to meet?
On Thu, Apr 2, 2015 at 13:05 Liang Dong [email protected] wrote:
I try to add termination lease request. To achieve this, I want to find
the current lease id of the login student. So I find all the leases of
login student. And find the lease whose status is current. But
But the return Leases List is null. Actually I put one lease under the
student.
public Lease queryCurrentbyStudentId(int sid) {
// TODO Auto-generated method stub
List Leases=this.queryLeasebyStudentId(sid);
System.out.println(sid);
for (Lease element : Leases) // or sArray
{
if(element.getStatus().equals("current"))
return element;
}
return null;
}
Reply to this email directly or view it on GitHub #37.
I try to add termination lease request. To achieve this, I want to find the current lease id of the login student. So I find all the leases of login student. And find the lease whose status is current. But
But the return Leases List is null. Actually I put one lease under the student.
public Lease queryCurrentbyStudentId(int sid) {
// TODO Auto-generated method stub
List Leases=this.queryLeasebyStudentId(sid);
System.out.println(sid);
for (Lease element : Leases) // or sArray
{
if(element.getStatus().equals("current"))
return element;
}
return null;
}
The text was updated successfully, but these errors were encountered: