
MANNING
Christian Bauer
Gavin King
Gary Gregory
F
OREWORD
BY
Linda DeMichiel
SECOND EDITION

Praise for the First Edition
The definitive guide to Hibernate and to object/relational mapping in enterprise computing.
—From the Foreword by Linda DeMichiel
Sun Microsystems
This book is the ultimate solution. If you are going to use Hibernate in your application, you
have no other choice; go rush to the store and get this book.
—Meera Subbarao
JavaLobby
Java Persistence with Hibernate is the most comprehensive, authoritative, and definitive
guide, tutorial, and reference to OR-mapped Java persistence.
—Will Wagers
C#online.net
A definitive source on Hibernate. Great for any developer.
—Patrick Peak, CTO
BrowserMedia, Author of Hibernate Quickly
I wholeheartedly recommend this book!
—Stuart Caborn
ThoughtWorks
Great topic, great content—and there is a great need for this book!
—Ryan Daigle, RTP Region
ALTERthought
This is the most complete book on Hibernate on the market. It covers everything, and I mean
everything. From mapping to annotations to whatever … it’s in here.
—Liz Hills
Amazon reviewer
Licensed to Thomas Snead <n.ordickan@gmail.com>

Licensed to Thomas Snead <n.ordickan@gmail.com>

Java Persistence
with Hibernate
SECOND EDITION
CHRISTIAN BAUER
GAVIN KING
GARY GREGORY
MANNING
SHELTER ISLAND
Licensed to Thomas Snead <n.ordickan@gmail.com>

For online information and ordering of this and other Manning books, please visit
www.manning.com. The publisher offers discounts on this book when ordered in quantity.
For more information, please contact
Special Sales Department
Manning Publications Co.
20 Baldwin Road
PO Box 761
Shelter Island, NY 11964
Email: orders@manning.com
©2016 by Manning Publications Co. All rights reserved.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in
any form or by means electronic, mechanical, photocopying, or otherwise, without prior written
permission of the publisher.
Many of the designations used by manufacturers and sellers to distinguish their products are
claimed as trademarks. Where those designations appear in the book, and Manning
Publications was aware of a trademark claim, the designations have been printed in initial caps
or all caps.
Recognizing the importance of preserving what has been written, it is Manning’s policy to have
the books we publish printed on acid-free paper, and we exert our best efforts to that end.
Recognizing also our responsibility to conserve the resources of our planet, Manning books
are printed on paper that is at least 15 percent recycled and processed without the use of
elemental chlorine.
Manning Publications Co. Development editor: Christina Taylor
20 Baldwin Road Technical development editor: Palak Mathur
PO Box 761 Copyeditor: Tiffany Taylor
Shelter Island, NY 11964 Proofreaders: Katie Tennant, Barbara Mirecki
Technical proofreader: Christian Alfano
Typesetter: Dottie Marsico
Cover designer: Marija Tudor
ISBN 9781617290459
Printed in the United States of America
12345678910–EBM–201918171615
Licensed to Thomas Snead <n.ordickan@gmail.com>