Hi all,
extending SearchResultModel with a custom search result model (which
uses also an hibernate supported db) I've found a curious thing.
While debugging, this code
***
testHibernateWrite();
***
is called twice!
That piece of code is inside the TemplateModel constructor:
******************************
public class CustomSearchResultModel extends SearchResultModel{
private Logger log =
LoggerFactory.getLogger(CustomSearchResultModel.class);
public CustomSearchResultModel(Content content, RenderableDefinition
definition, RenderingModel parent) {
super(content, definition, parent);
log.debug("constructor");
testHibernateWrite();
}
public void testHibernateWrite(){
...
}
******************************
Does anybody explain that?
Does it depend on Eclipse debugger tool?
That class is used as modelClass for a template...
Thanks for any help or suggestion!
Matteo
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------