Link to home
Start Free TrialLog in
Avatar of Thlware
Thlware

asked on

Hibernate filter not working

@FilterDef(name = "BaseEntityOwnershipListener", parameters =  {@ParamDef(name = "bu_Id", type = "string")}, defaultCondition="bu_Id = :bu_Id") 
@Filter(name = "BaseEntityOwnershipListener") 
@Entity
@Table(name = "SAMPLE_SCHEMA_NAME__WBN_SAMPLE")
@SuppressWarnings("serial")
public class SampleEntity 

Open in new window


is not working it seem to be injected after the database is being hit. Any ideas ?
ASKER CERTIFIED SOLUTION
Avatar of gudii9
gudii9
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Thlware
Thlware

ASKER

Does the order matter ? I will try it though
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Thlware

ASKER

re wrote the code using some of your ideas