Candylips's Posts
Nairaland Forum › Candylips's Profile › Candylips's Posts
1 2 3 4 5 6 7 8 ... 556 557 558 559 560 561 562 563 564 (of 587 pages)
people say its IBB |
so you did not had the mother of all phrases. FELLOW NIGERIANS |
its very possible if you are blind |
ok |
i'll pick Dr dre |
Dbanj biyibabe vs candylips ![]() |
jaybaby: ![]() |
Donzman:what can i say . well it takes a homo to recognise a homo . . . . putka |
no i think we can live together in peace |
na way na me get ground |
IBB thanks for you tips. will try this one tommorow |
ibb |
na who should go and do assignment |
why dont you open a thread for this instead of hijacking someelse thread ![]() |
teacher ![]() |
hehe |
so u know say him be nigerian |
![]() |
na who dash you the guy |
see them ugly niggaz |
u never hear am. |
@bioye No thats not me . . Looking at your code i have a few observations. firstly its not very good if you have your database code mixed with your controller code. What you should have done is to abstract out the database specific code into a DAO layer, inject the DAO into your Tapestry pages and then call the required method before then setting the page method. Looking at your code well. it should work if you are just loading the values in a single table . but when you have a foreign key relationship with many tables e.g lets say your employer table has a 1 - many relationship with employee table , and maybe a 1 - 1 relationship with Department table. When you run that query in your code Hibernate should automatically look for all the related tables and populate your object graph. This normally fails if you have lazy loading setup and u do not have a kind of Open-session-in -view pattern and tells hibernate to load the next object graph when it is required most of the time at the view-layer. This is because the Hibernate session with the database would have been closed by then. But i guess this shouldnt be a problem if you use Tapernate. i just had a look at it yesterday and you can set up the OIV pattern in Hivemind. This is the same logic i use the only difference is that i manage my Hibernate sessions in Spring @sbucareer To add to what bioye has said. and to repeat what i have said earlier. EJB is good but using it would limit you to an EJB way of doing things. EJB is only good for doing a truly distributed application but majority of projects do not really require this . So why should you use EJB in a project when you are not building a distributed applicaition that absolutely requires the sending of objects across multiple platforms ,. Just to let you know, Spring for example has a whole lot more features out of the box which EJB can nto even dream of. i think i have said these in my earlier posts but the Dependecy Injection provided by EJB 3.0 is vey basic and crap compared to what you get with Spring. Also, To do EJB 3.0 you need Java 5.0 and unforntuately it is not every body that has the luxury of Java 5.0 in the production environment. However Spring is compatible with 5.0 and earlier versions. Based on these two facts alone a lot of developers would definately go for something else other that EJB 3.0 Also for your information the fact that you use EJB doesnt mean you will earn more money. I have been in the UK job market for a while now and worked on a lot of contract Jobs with many companies and i can tell you with absolute fact that most Organizations dont really care less about EJB. Even Investment banks that create real-time distribtued trading software use a combination of C++ using Extensive CORBA with Just pure core java. Spring is also used extensively to help structure application code. always try to get your facts right before you make comments please |
wetin u wan make i talk na. people have said it all innit ![]() |
yes he is definately nigerian |
cool |
1 2 3 4 5 6 7 8 ... 556 557 558 559 560 561 562 563 564 (of 587 pages)



