Millan, yes search_id is important.
given a branch level office exists the first center (customer) for this branch would receive search_id of 1.1 The first child (group) of this center would recieve 1.1.1 and the first child(client) of it would be 1.1.1.1 if there was a second center within the given branch it would receive 1.2 and its children would be 1.2.1 and 1.2.1.1 So it is used basically to denote the center->group->client hierarchy and allows querys to do things like select * from customer where search_id like '1.2.%' to return entire hierarchy. Also used for ordering of customer hierarchy. Hope this helps. Could you point me to developer documentation you are currently looking at for customers? regards, KeithW. On Fri, Nov 19, 2010 at 4:29 PM, Milan Patel <[email protected]> wrote: > Hello, > After loading a number of rows of data on customer table, but not populating > field search_id, I try to create a new client via the front-end, but receive > an error which prevents the customer data from being persisted to database. > In log, error begins as follows: > SEVERE: Servlet.service() for servlet Controller threw exception > java.lang.NullPointerException > at > org.mifos.customers.persistence.CustomerDaoHibernate.retrieveLastSearchIdValueForNonParentCustomersInOffice(CustomerDaoHibernate.java:1619) > > I then populated field search_id in format "1." & customer_id. After doing > so, I am able to create the new customer, which has search_id of 1.1. > > My question is, what is the purpose of this field, and how does it need to > be populated? Existing documentation does not seem to indicate. > Thanks > Milan > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > Mifos-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mifos-users > > ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Mifos-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mifos-users
