SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye

Welcome, Guest
Guest Settings
Help

Compass Support Forums » Compass » Compass Users

Thread: deep hierarchy collection ownership not preserved

This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 14 - Pages: 1 - Last Post: Dec 3, 2011 4:40 AM Last Post By: longchamp
darnok

Posts: 27
Registered: 8/14/06
deep hierarchy collection ownership not preserved
Posted: Nov 10, 2006 5:55 AM
 
  Click to reply to this thread Reply
I have a 3 level hierarchy of SearchableComponents, GrandParent, Parent and Child.
GrandParent A
|
+- Parent AA
|
+- Parent AB
   |
   +- Child AB1
   |
   +- Child AB2

I save the GrandParent and read it back in from the index, and Children "migrate" from Parent AB to Parent AA.

GrandParent A
|
+- Parent AA
|   |
|   +- Child AB1
|   |
|   +- Child AB2
|
+- Parent AB

I've attached the test case source.
darnok

Posts: 27
Registered: 8/14/06
Re: deep hierarchy collection ownership not preserved
Posted: Nov 10, 2006 6:18 AM   in response to: darnok in response to: darnok
 
  Click to reply to this thread Reply
Just a mention, we're using Compass 1.1M2 and Lucene-2.0.0
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: deep hierarchy collection ownership not preserved
Posted: Nov 13, 2006 2:51 AM   in response to: darnok in response to: darnok
 
  Click to reply to this thread Reply
I have opened an issue for it - CMP-317 , and fixed it. Can you give latest M3 SNAPSHOT a try?
darnok

Posts: 27
Registered: 8/14/06
Re: deep hierarchy collection ownership not preserved
Posted: Nov 15, 2006 8:21 AM   in response to: darnok in response to: darnok
 
  Click to reply to this thread Reply
the new snapshot seems to work, cheers!
darnok

Posts: 27
Registered: 8/14/06
Re: deep hierarchy collection ownership not preserved
Posted: Nov 21, 2006 2:19 PM   in response to: darnok in response to: darnok
 
  Click to reply to this thread Reply
I've another question. I still see the "migration" behaviour, but only under certain conditions.

In my Searchable model, I've taken the approach of pre-populating empty collections that hold references to SearchableComponents. Ie.

public class Parent {
  private List<Child> children;
  @SearchableComponent
  public List<Child> getChildren() {
    if (children == null) {
      children = new ArrayList<Child>();
    }
    return children;
  }
}

This approach seems to result in "migration" of children across parents, sometime during the save/load of the entities. The test case attached indicates that. Set the IBCMDBIC156.POPULATE_NULL_COLLECTIONS to true, ie. pre-populate the null collections, and the test fails, set it to false, and all works well...

darnok

Posts: 27
Registered: 8/14/06
Re: deep hierarchy collection ownership not preserved
Posted: Nov 22, 2006 7:15 AM   in response to: darnok in response to: darnok
 
  Click to reply to this thread Reply
A correction to the test case
darnok

Posts: 27
Registered: 8/14/06
Re: deep hierarchy collection ownership not preserved
Posted: Nov 22, 2006 8:46 AM   in response to: darnok in response to: darnok
 
  Click to reply to this thread Reply
I've tried annotating the fields instead of accessors, no luck. Attached a test case that fails on second addition to the collection (got further than on accessors, where it failed on the first addition)
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: deep hierarchy collection ownership not preserved
Posted: Nov 22, 2006 2:48 PM   in response to: darnok in response to: darnok
 
  Click to reply to this thread Reply
I have fixed this (thanks!). Can you give 1.1 M3 SNAPSHOT a go?
eemm

Posts: 68
Registered: 10/31/11
Re: Many LJT files in temp directory
Posted: Oct 31, 2011 9:35 PM   in response to: darnok in response to: darnok
 
  Click to reply to this thread Reply
Coach Outlet Online offer different kinds of coach handbags outlet. Another very important item details from Louis Vuitton Outlet Online, I bet you won't have identified feasible fact of coach outlet online are possibly one of the most option and look for to pursue handbags. Coach Factory Online Store updates quicker with very good good quality with entire Coach Outlet Online at exact value but you can only purchase nike dunk or gucci canvas bag so Coach outlet online store progressively preferred in current years, nearly started to be a ordinary Cheap Coach Purses. Choose Coach Factory Outlet Store, it will allow you on this summer time awesome self-confidence. Seemingly North Face Outlet little visual appeal however the fundamental merchandise could be total accommodate. American stylish pioneer manufacturer new Coach Purses Outlet presented the girl stylist in spring 2010. Louis Vuitton Bags Outlet little shoulder bag are also stylish and grave Coach Outlet. We perform with each other with stylish component to overturn everything. Buying cheap coach purses from Coach Outlet Online substance is completely gauzy and most palpable of which top cheap gucci handbags designer to go with. Welcome order on our Coach Factory Outlet! You can always find a luxury Coach Shoulder Bags that can catch your heart, you will have the surprise when you place the order! Go head!
coach8outlet

Posts: 282
Registered: 11/13/11
louis vuitton handbags
Posted: Nov 13, 2011 7:19 PM   in response to: darnok in response to: darnok
 
  Click to reply to this thread Reply
louis vuitton handbags

are well known solution these days, there are lots of the lovers. The popularity of a certain designer label can also become the reason for the availability of counterfeit products.
Coach bags on sale from the
coach outlet

are cheap or discount prices that you certainly will stand out from the crowd on your next camping trip!
Welcome to order Discount
louis vuitton uk

and lead a fashionable, luxury and elegant life from our Louis Vuitton Canada Outlet Store. Enjoy the shopping now here!
If you buy Coach items at the
coach outlet online

store, the goods will be sent out within 24 hours after confirming your payment and arrive to your door within 7 work days.
Don't be stung online. there's no real need to rush
louis vuitton outlet

.If you can't walk into a store in or around your local region, online is your only other real-time alternative.
Sparkling
hermes birkin bag

are wonderful finishing piece for any wedding jewelry set. We are pleased to custom make bridesmaid crystal bracelets to coordinate with your wedding colors, for a lovely bridesmaid gift idea.
If you love designer fashion purses you may have come across all the
coach outlet store online

and accessories on Coach Factory Outlet.It's a great place to buy the items.
coach8outlet

Posts: 282
Registered: 11/13/11
louis vuitton handbags
Posted: Nov 13, 2011 7:20 PM   in response to: darnok in response to: darnok
 
  Click to reply to this thread Reply
louis vuitton handbags are well known solution these days, there are lots of the lovers. The popularity of a certain designer label can also become the reason for the availability of counterfeit products.Coach bags on sale from the coach outlet are cheap or discount prices that you certainly will stand out from the crowd on your next camping trip!Welcome to order Discount louis vuitton uk and lead a fashionable, luxury and elegant life from our Louis Vuitton Canada Outlet Store. Enjoy the shopping now here!If you buy Coach items at the coach outlet online store, the goods will be sent out within 24 hours after confirming your payment and arrive to your door within 7 work days.Don't be stung online. there's no real need to rush louis vuitton outlet.If you can't walk into a store in or around your local region, online is your only other real-time alternative.Sparkling hermes birkin bag are wonderful finishing piece for any wedding jewelry set. We are pleased to custom make bridesmaid crystal bracelets to coordinate with your wedding colors, for a lovely bridesmaid gift idea.If you love designer fashion purses you may have come across all the coach outlet store online and accessories on Coach Factory Outlet.It's a great place to buy the items.
coach8outlet

Posts: 282
Registered: 11/13/11
louis vuitton handbags
Posted: Nov 13, 2011 7:26 PM   in response to: darnok in response to: darnok
 
  Click to reply to this thread Reply
louis vuitton handbags are well known solution these days, there are lots of the lovers. The popularity of a certain designer label can also become the reason for the availability of counterfeit products.Coach bags on sale from the coach outlet are cheap or discount prices that you certainly will stand out from the crowd on your next camping trip!Welcome to order Discount louis vuitton uk and lead a fashionable, luxury and elegant life from our Louis Vuitton Canada Outlet Store. Enjoy the shopping now here!If you buy Coach items at the coach outlet online store, the goods will be sent out within 24 hours after confirming your payment and arrive to your door within 7 work days.Don't be stung online. there's no real need to rush louis vuitton outlet.If you can't walk into a store in or around your local region, online is your only other real-time alternative.Sparkling hermes birkin bag are wonderful finishing piece for any wedding jewelry set. We are pleased to custom make bridesmaid crystal bracelets to coordinate with your wedding colors, for a lovely bridesmaid gift idea.If you love designer fashion purses you may have come across all the coach outlet store online and accessories on Coach Factory Outlet.It's a great place to buy the items.
lvzeng

Posts: 268
Registered: 11/13/11
Re: deep hierarchy collection ownership not preserved
Posted: Nov 13, 2011 7:41 PM   in response to: darnok in response to: darnok
 
  Click to reply to this thread Reply
Owning

louis vuitton bags

of their own has been the dreams of many fad-seeking people for a quite long time.
You need not worry about the quality of the

coach outlet store online

for sale now. The Coach brand is famous for the perfect products.
I am so confused that I don,t even know where to buy the

louis vuitton

Handbags. Because I can prefer to chose the fashionable design, favorable price, top service .

coach outlet store online

with fashion style and top quality succeed. In any occasions they are very suitable and appropriate for its precise and rich design.
They're not chosen, so one of these ideal for you.For more flexibleness a lot more like these, there are lots of discount 'shoulder' variations outlet

louis vuitton bags

.

hermes birkin

is an Austrian success story par excellence. At the end of the 19th century Daniel Swarovski founded a company with the aim to cut crystals automatically.

coach outlet store

vision system is a visual enjoy, is a visual art. The particular design has been integrated function and the element of elegancy, then show you an exquisite and excellent product.
tonnyben

Posts: 270
Registered: 11/14/11
Re: deep hierarchy collection ownership not preserved
Posted: Nov 14, 2011 2:14 AM   in response to: darnok in response to: darnok
 
  Click to reply to this thread Reply

coach factory outlet online

featured with stylish leather bags and signature materials, and carry this bag, it can designate people seem to be captivatingly feminine and good-looking. Why not to buy one when it is at an affordable price?
The products that

louis vuitton outlet

is countless, such as: purses, bags, handbags, shoes, belt. Even the same kind of product includes the products for women, the products for men, for summer-day use, for winter-day use.So, it is probably far beyond your imagination.
As a perfect combination of classic and modern fashion,

coach outlet online

can show the customers'unique personality.

hermes birkin

is your premier online shop for a wide range of quality Swarovski Crystal products such as Swarovski Crystals earring, Jewelry, Bracelet etc.
You could find them in desirable quality and price. If you don't mind high class louis vuitton replica bags, have a good time at

louis vuitton outlet online

.

coach purses

tend to be among finest style strikes associated with these days! They're the standing image that many ladies possess, or even, intend on obtaining.
longchamp

Posts: 272
Registered: 12/1/11
Longchamp
Posted: Dec 3, 2011 4:40 AM   in response to: darnok in response to: darnok
 
  Click to reply to this thread Reply
longchamp, il se révèle être and also vital de l'histoire des graphic designers français de cuir, bagages et maroquinerie Longchamp strain devenir l'un des meilleurs quartiers de la marque, et devenir united nations symbole de la haute société. Aujourd'hui, la marque your not seulement la perception limitée de Longchamp et de vendre des reports sac longchamp durante cuir haut de gamme et des bagages, mais à s'impliquer dans la style, accessoires, chaussures, sacs, bijoux, montres, des médias, du vin et d'autres régions du géant des indicateurs de tendance.www.sacslongchamp-france.org
Legend
Guru: 2001 + pts
Expert: 501 - 2000 pts
Super-star: 101 - 500 pts
Assistant: 51 - 100 pts
Participant: 0 - 50 pts
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums