This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Testing and the fly likes [DBUnit] how to extract data from my database on the basis of some condition Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "[DBUnit] how to extract data from my database on the basis of some condition" Watch "[DBUnit] how to extract data from my database on the basis of some condition" New topic
Author

[DBUnit] how to extract data from my database on the basis of some condition

leo zeo
Greenhorn

Joined: Jun 20, 2008
Posts: 8


according to this code i will get the complete data of all tables of user table and its dependent tables.
Is there any method by which i can pass some condition to fetch the records?

my query would be like ...fetch me the records associated with only user_id=5 instead of fetching all records of user table and its dependent tables.

any pointers would be helpful

Thanks,
Leozeo
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2709
    
    5

Please check your PMs


SCJP, SCWCD.
|Asking Good Questions|
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [DBUnit] how to extract data from my database on the basis of some condition
 
Similar Threads
Basic question about Hibernate
join Hibernate query problem (Small problem)
Performance issue - selecting data from a large table
Performance tuning to select two whole tables for one-to-one mapping
Pagination Framework/libraries