sepand minoo

Greenhorn
+ Follow
since Dec 25, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by sepand minoo


I have one table in database that contains 3 foreign keys to another tables(this three tables name are: manager,worker and employee). in each row only one foreign key is filled.I need to write one query that with attention which column of fk is filled in where clause specified condition is performed. I write simple query in jpa but doesn't work properly
select b from allEmployees b where b.manager.name= :name OR b.worker.name = :name OR b.employee.name= :name
do you have any idea?I have to resolve it but i don't have any idea
i need when user click the button some of code run in server and client doesn't wait too long so i decide use this method in link http://www.javacodegeeks.com/2012/10/advanced-zk-asynchronous-ui-updates-and-background-processing-part-2.html but i have 2 problems:
when defined "private final EventListener<event> eventListener;"
the error is org.zkoss.zk.ui.event.EventListener dese not take parameter and secound problem is when pass event class to executation.schedule the third parameter doesn't event.please help me</event>
like this
Executions.schedule(desktop, eventListener, new StepEvent(object o, list<String> s, list<String> b,String d ));
the error is :class StepEvent isn't event but this article use similar calss name SecondStepEvent
stepEvent extends Event