-->
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: Get filted list from view using Hibernate-Spring
PostPosted: Thu Sep 02, 2010 6:35 am 
Newbie

Joined: Sun Feb 01, 2009 6:29 pm
Posts: 15
Hello I have view in my db (MySql) and I want to get a filtered list of myView by specified userId as shown below

Code:
            
PersistenceLayer persistenceLayer = PersistenceLayer.getPersistenceLayer();
MyViewDAO myView = persistenceLayer.getMyViewDAO();
MyViewId myViewId = new MyViewId();
myViewId.setUserId("11");
MyView myView= new MyView();
MyView.setId(myViewId);
List<MyView> userlist = myView.findByExample(myView);


But I get the full list.


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.