SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye

Welcome, Guest
Guest Settings
Help

Compass Support Forums » Compass » Compass Developers

Thread: CompassGps.index() fails with Hibernate ManyToOne LAZY fetch relationship

This question is answered.


Permlink Replies: 43 - Pages: 3 [ Previous | 1 2 3 | Next ] - Last Post: Dec 3, 2011 4:23 AM Last Post By: longchamp
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: CompassGps.index() fails with Hibernate ManyToOne LAZY fetch relationship
Posted: Jan 2, 2009 3:52 PM   in response to: Martin Kovacik in response to: Martin Kovacik
 
  Click to reply to this thread Reply
Thanks, I added this level of explicit initialization as well.

The coherence jar in not in Compass since I can't distribute it. If you use the ant targets, it will not compile the coherence package, but if you import it to eclipse or IDEA, then you need to add it (sadly).
Martin Kovacik

Posts: 16
Registered: 12/3/08
Re: CompassGps.index() fails with Hibernate ManyToOne LAZY fetch relationship
Posted: Jan 3, 2009 4:21 AM   in response to: Shay Banon in response to: Shay Banon
 
  Click to reply to this thread Reply
It doesn't work. You must return the modified initialized object as I did in the diff file.
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: CompassGps.index() fails with Hibernate ManyToOne LAZY fetch relationship
Posted: Jan 3, 2009 1:54 PM   in response to: Martin Kovacik in response to: Martin Kovacik
 
  Click to reply to this thread Reply
You are right, I will fix it, run the tests, and commit it.
Martin Kovacik

Posts: 16
Registered: 12/3/08
Re: CompassGps.index() fails with Hibernate ManyToOne LAZY fetch relationship
Posted: Jan 18, 2009 10:27 AM   in response to: Shay Banon in response to: Shay Banon
 
  Click to reply to this thread Reply
Shay,
I just downloaded 2.2.0-M1 and it looks like this issue ( CMP-805) is not fixed. I reviewed the code and didn't find the change you promised to do in previous post :)

Martin
Nick

Posts: 3
Registered: 1/12/09
Re: CompassGps.index() fails with Hibernate ManyToOne LAZY fetch relationship
Posted: Jan 18, 2009 2:13 PM   in response to: Martin Kovacik in response to: Martin Kovacik
 
  Click to reply to this thread Reply
As another alternative, you could always consider a different JPA implementation, at least until hibernate resolves this (rather large and ugly) issue of not initializing related objects on field reference. Of course, that may be a lot more disruptive change than you want to tackle in your project but it might be worth a look if you are not using any hibernate-specific extensions... I know that OpenJPA will correctly handle this situation, for instance, not sure about toplink.
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: CompassGps.index() fails with Hibernate ManyToOne LAZY fetch relationsh
Posted: Jan 19, 2009 6:00 AM   in response to: Martin Kovacik in response to: Martin Kovacik
 
  Click to reply to this thread Reply
Really? What did I miss? Looking at the code again, it looks like it should be ok... .
Martin Kovacik

Posts: 16
Registered: 12/3/08
Re: CompassGps.index() fails with Hibernate ManyToOne LAZY fetch relationsh
Posted: Jan 19, 2009 6:20 AM   in response to: Shay Banon in response to: Shay Banon
 
  Click to reply to this thread Reply
In the provided diff in ClassMappingConverter class there is this code snippet:

root = proxyExtractorHelper.initializeProxy(root);

but this is in 2.2.0-M1 code:

proxyExtractorHelper.initializeProxy(root)

This causes that the root object is not initialized.
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: CompassGps.index() fails with Hibernate ManyToOne LAZY fetch relationsh
Posted: Jan 19, 2009 6:33 AM   in response to: Martin Kovacik in response to: Martin Kovacik
 
  Click to reply to this thread Reply
If you have a look at fisheye: http://fisheye.compass-project.org/fisheye/browse/compass/trunk/src/main/src/org/compass/core/converter/mapping/osem/ClassMappingConverter.java?r=3606, you can see that it is there. Maybe you are still working with a nightly build?
Martin Kovacik

Posts: 16
Registered: 12/3/08
Re: CompassGps.index() fails with Hibernate ManyToOne LAZY fetch relationsh
Posted: Jan 20, 2009 3:50 PM   in response to: Shay Banon in response to: Shay Banon
 
  Click to reply to this thread Reply
You were right, I was using different version. However I checked my local maven repository and there was 2.2.0-M1 with old code in it (I don't know how that's possible)... I forced maven to update and now everything works. It was my mistake, thanks for pointing it out.
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: CompassGps.index() fails with Hibernate ManyToOne LAZY fetch relationsh
Posted: Jan 21, 2009 5:42 AM   in response to: Martin Kovacik in response to: Martin Kovacik
 
  Click to reply to this thread Reply
No problem, thank you for helping at resolving this!.
louisvuittonbox

Posts: 411
Registered: 8/23/11
Re: CompassGps.index() fails with Hibernate ManyToOne LAZY fetch relationship
Posted: Aug 23, 2011 10:29 PM   in response to: jsun in response to: jsun
 
  Click to reply to this thread Reply
miu miu bags. It's no secret that miu miu handbags are among the most popular in the world. That's because their longstanding reputation of quality and craftsmanship coupled with their amazing ability to foresee what will happen next in fashion makes their miu miu shoes among the absolute best and most unique in the world. Our miu miu 2011 offer all the same classic attributes . you'll be turning heads with one of these on your arm , and at only a fraction of the price! (Miu Miu Handbags)Please feel free to browse our Miu Miu replica handbags in our miu miu outlet, and contact us with any questions that you may have.
adsf

Posts: 40
Registered: 9/15/11
Re: CompassGps.index() fails with Hibernate ManyToOne LAZY fetch relationship
Posted: Sep 15, 2011 9:27 PM   in response to: jsun in response to: jsun
 
  Click to reply to this thread Reply
ggf

フェラガモは、天才サルヴァトーレ・フェラガモという靴職人によって作られた高級ブランドです。世界的に有名で、フェラガモ公式サイト100年以上の歴史を誇るイタリア発のフェラガモファッションブランドです。最高のフェラガモ フラットシューズ作りに象徴される品質と熟練した職人技、そして創造的で革新的なデザインを兼ね備えています。フェラガモ靴からフェラガモバッグ、フェラガモ財布、フェラガモ時計まで、最先端製品ファッションブランドフェラガモのデザインや製造、流通を行う一流の企業フェラガモ店舗となっています。 フェラガモの一貫した「イタリア主義」イタリア企業であることに誇りをもち、フェラガモ素材、デザイン、染色、製造全てを完璧にイタリア製で統一していますフェラガモ。こうしたMade in Italyという徹底したコンセプトのもと、フェラガモ長年培われてきた職人技術をもって、フェラガモ最高のモノ作りに情熱を注いでいるのがフェラガモというブランドです。

linzhixiong123

Posts: 128
Registered: 9/30/11
Re: CompassGps.index() fails with Hibernate ManyToOne LAZY fetch relationship
Posted: Sep 30, 2011 3:32 AM   in response to: jsun in response to: jsun
 
  Click to reply to this thread Reply
macmakeup12

Posts: 174
Registered: 9/21/11
Re: CompassGps.index() fails with Hibernate ManyToOne LAZY fetch relationship
Posted: Oct 2, 2011 10:55 PM   in response to: jsun in response to: jsun
 
  Click to reply to this thread Reply
These are just dulllinks of london, links of londonfunctional buildingscheap links of london. cheap links of londonThe new station at high speed Lige in Belgium, by architect and engineer Santiago Calatrava and is located in a destination is in itselflinks of london wholesale,links of london wholesale with its large terracediscount links of london,discount links of london flat glasslinks of london sale,links of london sale the 25 meters high and 200 feet longBangles,Bracelets on the central platform measuresCharms.Earrings The symmetrical design gives completely the idea of a classic FARings?WatchesHoweverchi flat iron,chi flat iron the majority always want to look presentable and especially good as they don't want to embarrass the people they are with by looking scruffychi hair straightener.chi hair straightener Even some users lend theirs out for others to use and take it with them when they go on vacation.The Chi flat iron is an ideal tool for those who are looking for a multipurpose machine to straightenchi flat iron sale,chi flat iron sale curl and twist hairchi flat irons cheap.chi flat irons cheap It costs next to nothing to buy and will last for at least a few yearschi flat iron hair.chi camo flat iron Best of allchi hair dryer sale, chi turbo hair ironanyone can get complete servicing for up to a yearCHI Zebra Ceramic Collection, Pink Zebra CHIlonger if they pay the extrachi flat iron Pink.A Nike Outlet Store is a dreamland for shoppers who want to acquire Nike sportswear and sports equipment productsnike shox sko.nike shox sko Across the globebillige nike shox sko,billige nike shox sko millionsnike sko nettbutikk, nike sko nettbutikkif not billionsnike shox norge, nike shox norgeof people want to have Nike items because of the popularity of the brandNike Air Max Sko Men.Nike Air Max Sko Men But not only thisNike Air Max Sko Women; Nike Air Max Sko WomenNike is also known to offer high- quality products that eventually became the standard of modern sportswear fashionNike Shox Men Sko. Nike Shox Men SkoNike products are revered around the world that not only individualsNike Shox Women Sko, Nike Shox Women SkoBuying wholesale makeup online means you can save huge amounts of money.Once you find a genuine websitemac cosmetics wholesale,mac cosmetics wholesale upon browsing it you will see the quality of makeup it sellsdiscount mac cosmetics.discount mac cosmetics Usuallywholesale mac cosmetics,wholesale mac cosmetics the site will specialise in a wide range of cosmetics including high end makeup brands at extremely affordable pricesBobbi Brown Brushes.Bobbi Brown Brushes Most of the branded products will include eye shadowCheap Bobbi Brown Brushes,Cheap Bobbi Brown Brushes foundationBobbi Brown Brush Sets,mac brushes set lipstickmac brushes,mac brushes wholesale blusherMac Concealer,Best Mac Concealer
http://shuijin0024.blog.163.com
http://hi.baidu.com/shuijin0024/blog
http://blog.sina.com.cn/u/2192630013
http://blog.sohu.com/people/!c2h1aWppbjAwMjRAaG90bWFpbC5jb20=
http://shuijin12.blog.com
http://www.shuijin0024.19dog.com
http://shuijin12.over-blog.com
http://17278441.blog.hexun.com
http://www.thoughts.com/shuijin0024
http://yu123456.beeplog.com
http://www.freedatingsiteahead.co.uk/blogs.php?action=show_member_blog&ownerID=4600
http://www.darksiders.net/user/shuijin0024/blogs
http://www.equestrianblogging.com/blogs/shuijin0024
http://shuijin0024.insanejournal.com
http://www.blurty.com/users/shuijin0024
http://shuijin0024.mylivepage.com/blog/index
http://shuijin12.nipox.com
http://shuijin12.allmyblog.com
http://shuijin12.blogdetik.com
http://www.adultblogs.com/users/shuijin0024
http://www.graphicdesigncommunity.com/blogs.php?action=show_member_blog&ownerID=59797
http://shuijin0024.inube.com
http://www.holatu.com/user/shuijin0024/blogs
http://yu123456.manablog.jp
http://shuijin12.blog.cz
http://vidi.co.il/profile_blogs/shuijin12
http://shuijin12.blog.com
http://shuijin12.bloggd.org
http://shuijin12.eklablog.com
http://www.yourlocalinsider.co.uk/pg/blog/owner/shuijin0024
http://shuijin12.podbean.com
http://www.blogstoday.co.uk/bloghome.aspx?username=shuijin12
http://shuijin12.tumblr.com
http://phlog.net/shuijin0024
http://shuijin12.tiblog.fr
http://shuijin123.blogoak.com
http:/shuijin0024.blog.forexstar.com.cn
http://blog.cnfol.com/shuijin12
http://myindiacafe.com/blogs/shuijin12
http://shuijin12.blogfa.com
http://gvrl.com/blogsearchresults.asp?basicsearch=shuijin12
http://american-idol-stars.com/blog/shuijin12
http://www.mywebprofile.com/user/shuijin0024/blogs
http://shuijin0024.fotopages.com
http://indyarocks.com/user/shuijin0024/blogs
http://blog.zol.com.cn/shuijin0024
http://www.crimetime.co.uk/community/shuijin0024/blog
http://www.pyarosathi.com/user/shuijin123456/blogs
http://www.bigfriendsgroup.com/shuijin12/blogs
http://freckbook.com/blogs/posts/shuijin12
http://www.spanishmusic.biz/user/shuijin123/blogs
http://www.creativesocial.net/pg/blog/owner/shuijin12
http://www.youaction.com/user/shuijin0024/blogs
http://www.muslimduniya.com/member/view_blog.php?profile_id=1014
http://www.bambinidisatana.com/network/blogs/liststories/user_shuijin0024
http://www.lovemuhammad.com/pg/blog/shuijin12
http://osi.parsons.edu/archive/osi2007/?q=blog/10949
http://saswingers.org/blog/7217
http://imfriends.net/user/yu2280707315/blogs
http://www.mygatheringspace.com/blogs.php?action=show_member_blog&ownerID=1865
http://www.lw-works.com/blog/32371
http://www.alieninchina.com/blogs/posts/shuijin12
linzhixiong159159

Posts: 90
Registered: 10/4/11
Re: CompassGps.index() fails with Hibernate ManyToOne LAZY fetch relationship
Posted: Oct 4, 2011 10:48 PM   in response to: jsun in response to: jsun
 
  Click to reply to this thread Reply
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