₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,838 members, 8,513,935 topics. Date: Thursday, 05 November 2026 at 07:12 PM

Toggle theme

Candylips's Posts

Nairaland Forum › Candylips's Profile › Candylips's Posts

1 2 3 4 5 6 7 8 ... 552 553 554 555 556 557 558 559 560 (of 587 pages)

Celebrities › Re: Anita Hogan Marries Her Oyibo Boyfriend by candylips(m): 11:19am On Oct 23, 2006
abi
Forum Games › Re: Be The Last Person To Post Here: by candylips(op): 11:19am On Oct 23, 2006
no you are not
European Football (EPL, UEFA, La Liga) › Re: Arsenal Fan Thread: For Gunners Only (Old) by candylips(m): 11:18am On Oct 23, 2006
hey dont mess with my team o.
European Football (EPL, UEFA, La Liga) › Re: Arsenal Fan Thread: For Gunners Only (Old) by candylips(m): 10:23am On Oct 23, 2006
abeg dont go there
TV/Movies › Re: Nollywood Stars Who Can Make It In Hollywood by candylips(m): 10:22am On Oct 23, 2006
nice stuff
Celebrities › Re: Lebo Mathosa Dies In Car Crash by candylips(m): 9:42am On Oct 23, 2006
yes. may the soul of the departed rest in peace
TV/Movies › Re: Lotto Nigeria by candylips(m): 9:39am On Oct 23, 2006
is there lotto in nigeria now. cool
Romance › Re: Fighting Temptations: by candylips(m): 9:37am On Oct 23, 2006
and how is that a human problem dude
Forum Games › Re: Be The Last Person To Post Here: by candylips(op): 9:36am On Oct 23, 2006
ok grin
Romance › Re: Can You Love A Married Man? by candylips(m): 9:32am On Oct 23, 2006
oga pastor . we don hear you smiley
Travel › Re: Need Visa Ugently by candylips(m): 9:29am On Oct 23, 2006
which part of the world is that undecided
Jokes Etc › Re: funny pix CAUTION by candylips(m): 9:29am On Oct 23, 2006
have you gat one tongue
Celebrities › Re: Toni Braxton Breaks Down After Dedicating Song To Son by candylips(m): 9:28am On Oct 23, 2006
dont know
Travel › Re: Hurray: Benin To Lagos Is Now 7 Hours! by candylips(m): 9:28am On Oct 23, 2006
thats even small change sef
Family › Re: Madonna And The Adopted Baby From Malawi by candylips(m): 9:25am On Oct 23, 2006
the problem is she went through the back door to get the child
Programming › Re: Looking For People Interested In Exploring JavaEE 5 And EJB 3.0 by candylips(m): 7:57am On Oct 23, 2006
bioye:
@Candylips,

I agree with you that DAO's are neater. But you really derive the most value from them when you are on very large projects and you do a lot of maintenance. Following my KISS principles, I would only refactor during maintenance when modularity will ease headaches. However, don't worry, I'll soon move totally to the DAO approach. Meanwhile, for curiosity's sake, can you post an example of how you accessed an object graph from a tapestry page class via a DAO?
Well thats easy, you need to define your DAO in Hivemind or Spring and if you want to access the object in your Tapestry page you add something like this in the Page specification.

<inject property="employeeDAO" type="spring" object="employeeDAO"/>

your page class will have

public abstract IEmployeeDAO getEmployeeDAO();

or if you are using annotations

@InjectObject("employeeDAO"wink
public abstract IEmployeeDAO getEmployeeDAO();

Well my example uses spring i guess if you are configuring your DAO in Hivemind the type attibute should be object instead of spring

Thats it ! you can now access your DAO methods in your Pages .


bioye:
Like I told you, it's just a workaround. I actually have relationships that span graphs of objects in my code. I'm not even sure if it works so well. Even when the tapestry page fails to load the object, a refresh solves the problem. However, if you get a good solution to the problem, please let me have it. I must agree with you that some of my code needs refactoring though. I'm guilty of that and there is a reason why it's so - a steep deadline!
Yea you would be better of refactoring you database logic into a DAO layer but a steep deadline is not an excuse  smiley
Politics › Re: Vocabularies Made Popular By Nigerian Leaders Erom 80s Till Date. by candylips(m): 7:31am On Oct 23, 2006
political Godfather
Family › Re: Madonna And The Adopted Baby From Malawi by candylips(m): 9:35pm On Oct 22, 2006
there are other threads adressing this issue already
Forum Games › Re: Be The Last Person To Post Here: by candylips(op): 9:12pm On Oct 22, 2006
. lipsrsealed .
Celebrities › Re: Is Neyo Gay? by candylips(m): 9:02pm On Oct 22, 2006
ha maybe she is the one working that thing with her mouth
Celebrities › Re: Jay-z Issues Statement On Nigeria Visit by candylips(m): 9:01pm On Oct 22, 2006
Radiant. i am cool. its nice to be alive tongue
Forum Games › Re: Be The Last Person To Post Here: by candylips(op): 8:58pm On Oct 22, 2006
ok .

i am the last now by the way wink
Celebrities › Re: Jay-z Issues Statement On Nigeria Visit by candylips(m): 8:56pm On Oct 22, 2006
wetin you dey talk abi she don already arrange your teeth for you cheesy
Celebrities › Re: Toni Braxton Breaks Down After Dedicating Song To Son by candylips(m): 8:52pm On Oct 22, 2006
4 real grin
Forum Games › Re: Be The Last Person To Post Here: by candylips(op): 8:46pm On Oct 22, 2006
am a tough playa
Celebrities › Re: Jay-z Issues Statement On Nigeria Visit by candylips(m): 8:44pm On Oct 22, 2006
na wa for you o jaybaby. i never knew you were a boxer shoo. u wan arrange him teeth like that .kai

1 2 3 4 5 6 7 8 ... 552 553 554 555 556 557 558 559 560 (of 587 pages)