-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hbn cont. method getContainerFilters() after Vaadin migrate
PostPosted: Tue Jul 15, 2014 5:55 am 
Newbie

Joined: Tue Jul 15, 2014 5:39 am
Posts: 2
Hi all !

In my app(Vaadin 7.2.4) and HibernateContainer utils what is almost 1:1 with some modifications like: https://github.com/gpiercey/HbnContainer/blob/master/src/com/vaadin/data/hbnutil/HbnContainer.java

After migrate i got one error: The return type is incompatible with Container.Filterable.getContainerFilters() for

Code:
   public Set<ContainerFilter> getContainerFilters()
   {
      return filters;
   }


because Container.Filterable after Vaadin 7.1 return Collection i tryed to fix this but unsuccessful
Code:
        public Collection<Filter> getContainerFilters();


maybe someone can give me some tips how to resolve this error ?

I am using this method in my app to get container filter iterator
Code:
                for (Iterator<?> iterator = hc.getContainerFilters().iterator(); iterator.hasNext();)
                {
                      ContainerFilter cf = (ContainerFilter)iterator.next();
                      if (cf.getPropertyId().equals("id"))
                            allowedSize=1;
                }


THANKS !


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.