0 Replies Latest reply on May 7, 2008 3:40 PM by Alex Ardelean

    How to add restrictions

    Alex Ardelean Newbie

      Hi all, I have question to you guys.
      I have to change little by little a standalone application into a web using seam. But the clients want to do this slowly, first changing only the database layer from the custom layer into a openJPA or Hibernate framework. I saw that in the seam entities generated with your framework you added a restriction  string vector to be applied to all the searches. I need to do something like that, but don't know how... I need to have some restrictions in my classes and all the queries executed over these classes to apply them. I believe that this is done in the EntityQuery class implemented by you guys. Is it possible to do this in one of my custom classes? To have the functionality of EntityQuery in some other class?
      Thank you in advance.