Using a "a serialized(XML/JSON) string" is a good idea. You can also use a multi-valued, component based attribute using delimiters: minValue#maxValue#priority#index
-jim Jim Willeke On Sun, Oct 2, 2011 at 5:50 PM, david jones <[email protected]> wrote: > Any thoughts on the best way to store an array in ldap and how to structure > the schema and attributes? > > ex. I have an array of Targets > each Target has a minValue, maxValue, and priority > > so how to I go from a java array, i.e: > minValue[1]=10; maxValue[1] = 20; priority[1]=1 > minValue[2]=0; maxValue[2] = 30; priority[2]=5 > . > . > . > > and store it to ldap? Should i make Target a Multiple-Value , but how to > associate the index, minValue, maxValue and priority? > Can an attribute only have a single value? > > Note: There should only be a max of 16 Targets, so I could create separate > attributes for each Target as Single-Value, i.e. Target1, Target2, .... > but again, whats the best way to associate > minValue[2],maxValue[2],priority[2] with Target2? > > > > -- > David >
