Harnessing Hibernate by James Elliott & Timothy M. O'Brien & Ryan Fowler

Harnessing Hibernate by James Elliott & Timothy M. O'Brien & Ryan Fowler

Author:James Elliott & Timothy M. O'Brien & Ryan Fowler
Language: eng
Format: mobi, epub
Tags: COMPUTERS / Data Modeling & Design
Publisher: O'Reilly Media
Published: 2008-12-16T16:00:00+00:00


Then all that’s left to do is iterate over and print what we’ve found. We can’t do much more than call toString() on the objects we get back because we don’t know what they might be. Object is not very deep as a shared interface.

There’s one more step we need to take before we can run this. Add another target to build.xml, as shown in Example 9-4.

* * *

Tip

As usual, these examples assume you’ve set up the environment by following the preceding chapters. You can also just use the downloadable sample source for this chapter. If you were following along through Chapter 7 and replaced your mapping files with annotations, you will need to either go back to your Chapter 6 code or download this chapter’s code, since these examples rely on features of the mapping files.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.