Sunday, September 27, 2009
Sunday, September 13, 2009
Hibernate: Easy to JUST Use...But HARD to use in Right way
Hi,
Recently started working on migration of one of our application to port on Hibernate. To be frank, I dont know much of hibernate. At the same time, from bottom of heart, am not all that big fan of Hibernate as well !!
But yes, taking this as an opportunity to learn hibernate and looking for some concrete reasons to LOVE or HATE it :p
So started looking around for some good online articles to get booted up. At first glance simple ORM looked so straight forward that I felt like in heaven to be a developer using Hibernate. But soon, realized a devil a residing in the heaven. That is why the title of the post is "Hibernate: Easy to JUST Use...But HARD to use in Right way" !!
Yes, this is what I have felt so far, I may change my opinion later :p
One of the main reason why I felt so is the way we use "OneToMany" association with "inverse" attribute and "cascade" attribute.
I definitely want to thank all smart poeple who put their articles to help newbie like me to understand Hibernate. Giving some links below in the order of my likings towards the explanation :
http://www.neeraj.name/blog/ articles/43-hibernate- association-behind-the-scene- action
http://simoes.org/docs/ hibernate-2.1/155.html
http://www.devx.com/dbzone/ Article/29685
http://www.javalobby.org/java/ forums/t48846.html
http://www.jeevanchaaya.com/ 2008/10/17/improving- performance-in-hibernate/
http://java.dzone.com/ articles/hibernate- performance-tuning
http://bigapplezlp.wordpress. com/2008/05/07/hibernate- performance-tuning/
http://acupof.blogspot.com/ 2008/01/background-hibernate- comes-with-three.html
http://hibernatebp.blogspot. com/
http://jroller.com/jcarreira/ date/20050223#hibernate_tips
http://www.javabeat.net/ articles/37-introduction-to- hibernate-caching-1.html
Recently started working on migration of one of our application to port on Hibernate. To be frank, I dont know much of hibernate. At the same time, from bottom of heart, am not all that big fan of Hibernate as well !!
But yes, taking this as an opportunity to learn hibernate and looking for some concrete reasons to LOVE or HATE it :p
So started looking around for some good online articles to get booted up. At first glance simple ORM looked so straight forward that I felt like in heaven to be a developer using Hibernate. But soon, realized a devil a residing in the heaven. That is why the title of the post is "Hibernate: Easy to JUST Use...But HARD to use in Right way" !!
Yes, this is what I have felt so far, I may change my opinion later :p
One of the main reason why I felt so is the way we use "OneToMany" association with "inverse" attribute and "cascade" attribute.
I definitely want to thank all smart poeple who put their articles to help newbie like me to understand Hibernate. Giving some links below in the order of my likings towards the explanation :
http://www.neeraj.name/blog/
http://simoes.org/docs/
http://www.devx.com/dbzone/
http://www.jeevanchaaya.com/
http://java.dzone.com/
http://bigapplezlp.wordpress.
http://acupof.blogspot.com/
http://jroller.com/jcarreira/
http://www.javabeat.net/
Tuesday, August 25, 2009
Friday, August 14, 2009
Independence "In-Deep-Essence" to me
62 Years of so-called "Independence" !!
Yes, this is what I feel when I see people feeling happy that they got their nation from Britishers, who looted us just like mankind loots honeybees.
But are we able to digest this Independence??
I always ask this Question to me.....What this Independence really means to me ??
> Does it just mean to throw Ruling Britishers out of the country and let our own corrupted people to loot us?
> Does it mean to break our own country, friendship and create India , Pakistan, Bangladesh, Kashmir, POK ?
> Does it mean to break Indians into caste (SC / ST / NT / OBC ), religion, and state ?
> Does it mean to remember and give respect to flag, national anthem for a day and then throw in dustbin on next day?
If answer is yes, then I am sorry to say, but I would have been happy to see Britishers only to rule me and my nation !! Yes, because in that case atleast we, all Indians would have been together forgetting caste, religion and states. We (Post Independence) as a generation got Independence for free, may be that is why we dont value it.
We say that we are one of biggest democracy in place. But what is use of such democracy where we are only in power just during election time. We elect our representative. Then for next five years they will suck us with all their power. Nothing happens as common man wants. Still we call it democracy.
I thought Independent country has aware civilians. And civilians are as aware as media over there is. But thankfully our media is too busy capturing child in hole, sexy actresses in movies, thug baba's bahvishyawanis and cricketer's favorite food.
We can't even blame politicians only for all this. We as individuals, care for personal benifit more than that of country and more broadly for every living being.
> Why we want to diffenetiate poeple based on caste during any procedure?
> Why we want reservation?
> Why we want to break indians based on their native state?
Politicians shows us dreams, breaks it everyrime, and we still support them everytime.
To me, we have just got Independence from one perspective. There are still having challanges from many enemies of ours whom we are still slaves to !!! These are bigger than and much powerful than what britishers were. To my small mind, following are those, but there might be many others....
1. Corruption
2. Racism
3. High valie of Money infront of value of any living being's life
4. Selfish outlook / politics
Dont forget, "Together we stand, alone we fall". To f*ck all above enemies, we have to come together. We have to play our role. We may differ in our way of fighting, but our goal will be same and noble. Are you fighting for your self ? For your family ? For your country ? For every one who breaths ?
Yes, this is what I feel when I see people feeling happy that they got their nation from Britishers, who looted us just like mankind loots honeybees.
But are we able to digest this Independence??
I always ask this Question to me.....What this Independence really means to me ??
> Does it just mean to throw Ruling Britishers out of the country and let our own corrupted people to loot us?
> Does it mean to break our own country, friendship and create India , Pakistan, Bangladesh, Kashmir, POK ?
> Does it mean to break Indians into caste (SC / ST / NT / OBC ), religion, and state ?
> Does it mean to remember and give respect to flag, national anthem for a day and then throw in dustbin on next day?
If answer is yes, then I am sorry to say, but I would have been happy to see Britishers only to rule me and my nation !! Yes, because in that case atleast we, all Indians would have been together forgetting caste, religion and states. We (Post Independence) as a generation got Independence for free, may be that is why we dont value it.
We say that we are one of biggest democracy in place. But what is use of such democracy where we are only in power just during election time. We elect our representative. Then for next five years they will suck us with all their power. Nothing happens as common man wants. Still we call it democracy.
I thought Independent country has aware civilians. And civilians are as aware as media over there is. But thankfully our media is too busy capturing child in hole, sexy actresses in movies, thug baba's bahvishyawanis and cricketer's favorite food.
We can't even blame politicians only for all this. We as individuals, care for personal benifit more than that of country and more broadly for every living being.
> Why we want to diffenetiate poeple based on caste during any procedure?
> Why we want reservation?
> Why we want to break indians based on their native state?
Politicians shows us dreams, breaks it everyrime, and we still support them everytime.
To me, we have just got Independence from one perspective. There are still having challanges from many enemies of ours whom we are still slaves to !!! These are bigger than and much powerful than what britishers were. To my small mind, following are those, but there might be many others....
1. Corruption
2. Racism
3. High valie of Money infront of value of any living being's life
4. Selfish outlook / politics
Dont forget, "Together we stand, alone we fall". To f*ck all above enemies, we have to come together. We have to play our role. We may differ in our way of fighting, but our goal will be same and noble. Are you fighting for your self ? For your family ? For your country ? For every one who breaths ?
Sunday, August 2, 2009
Monday, July 13, 2009
Democracy OR Daemōn-Cursing
Yes I am frustrated. Yes I am impatient. Yes I am confused about so called golden word "Democracy", please help me if you think you understand it But before all let me tell you that I don't support any political party :P
Here are few questions that I have:
What I am frustrated about ?? :
= Can we keep our tubelights off during the day time whenever possible ?
= Can we switch off all the electrical and electornic items aound us which will be idle after we leave our office premises? Even standby mode eat power, no matter how low, still there is still power being wasted for no good reason. Do we keep our monitors on when we leave our home? No,why? Because we pay the light bill...then why we forget to switch it off when we leave office ??
= Can we take a walk/bicycle ride whenever possible instead of bike or car?
= Can we use email instead of paper printout. And if at-all print is necessary, can't we mandate to make print papers to be used both sides ?
In short If we have got freedom, we gotta use it with responsibility
But what we are forgetting is that we are putting thing in a infinite loop here. We can start paying taxes and then screw and force govt. to do their task. Govt. is made up of poeple like you and me. If we all are doing our job with responsibility, then we can definitely pluck few remaining assholes out of the business to get the healthy environment !!
Now I feel, I haven't listed any of the solutions which I feel needs a rocket science to implement.
Yes, I am positive about this. Yes I am waiting but acting for this. And Yes if I can do it, everyone else can !!
Here are few questions that I have:
- We have right to vote, but are we getting right candidates to vote to?
- We have right to speak, but is government having time to listen to it?
- We call democracy in country, but do we feel people ruling OR (Fair) rules in place for people of country ?
- Do we need statue of a (Shit) politician at cost of crores of rupees that we pay as tax?
- Who is Common Man (Aam Adami) according to out great politicians ?
What I am frustrated about ?? :
- Do we need statue of a (Shit) politician at cost of crores of rupees that we pay as tax?
- Do we want to give 100% tax benifits to donations given to political parties ( by businessmen)
- We have concerns about getting our black money out of tax heaven country, but can't we focus on atleast making sure that all black (Real estate for example) transactions that occuring in the country itself?
- Do we want to give more tax benefits to people who are already earning over 10s of lacs per annum or to a common man ?
- We dont have 24 Hrs. of electricity even in 60 Km surroundings of Capital hub (Mumbai) of India, and we want to make it Shanghai (LOL) !!
- Small things CAN bring BIG Differences : Yes, I am a true believer of this statement. And I always tried (I think, I always Had ever since I think I felt being responsible) to be practical with it. But question is, "What I can do alone ???" hmm... good Q, but here are something that we can always do, and we dont have to depend on others atleast for these things :
= Can we keep our tubelights off during the day time whenever possible ?
= Can we switch off all the electrical and electornic items aound us which will be idle after we leave our office premises? Even standby mode eat power, no matter how low, still there is still power being wasted for no good reason. Do we keep our monitors on when we leave our home? No,why? Because we pay the light bill...then why we forget to switch it off when we leave office ??
= Can we take a walk/bicycle ride whenever possible instead of bike or car?
= Can we use email instead of paper printout. And if at-all print is necessary, can't we mandate to make print papers to be used both sides ?
In short If we have got freedom, we gotta use it with responsibility
- Do It your self b4 asking some1 else to : We always crib about politicians (Government) not doing their job blah blah... I would say, we DON'T have right say it. Whyyy ??
But what we are forgetting is that we are putting thing in a infinite loop here. We can start paying taxes and then screw and force govt. to do their task. Govt. is made up of poeple like you and me. If we all are doing our job with responsibility, then we can definitely pluck few remaining assholes out of the business to get the healthy environment !!
Now I feel, I haven't listed any of the solutions which I feel needs a rocket science to implement.
Yes, I am positive about this. Yes I am waiting but acting for this. And Yes if I can do it, everyone else can !!
Subscribe to:
Posts (Atom)