Monday 31 March 2014

buildSessionFactory() after Hibernate 4


Configuration cfg = new Configuration().configure();
cfg.buildSessionFactory()


cfg.buildSessionFactory() is deprecated starting hibernate 4 onwards.


Following code can be used to create session factory starting from hibernate 4


Configuration cfg = new Configuration().configure();
ServiceRegistry registry = new StandardServiceRegistryBuilder().applySettings(cfg.getProperties()).build();
factory = cfg.buildSessionFactory(registry);

Monday 3 March 2014

[Book Review] Mastering Elasticsearch - Not for Begineers



Book Details
Language : English
Paperback : 386 pages [ 235mm x 191mm ]
Release Date : October 2013
ISBN : 178328143X
ISBN 13 : 9781783281435
Author(s) : Rafał KućMarek Rogoziński
Topics and Technologies : All Books, Big Data and Business Intelligence, Open Source



Review :  This books starts with introduction to lucene. The authors have organized the first few topics so well, that it gives very good insight for the people who are new to Lucene. This book is for advanced Elasticsearch users who are interested to know more about ES architecture and turning the performance. This book is NOT for beginners.