Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Utility

 
amit khosla
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have created a utility for improving usage of hibernate.
This utility is an attempt to solve issues we face while using hibernate.Currently solving these four problems:
1)Updating object delete null data.
If we have some pojo which is having some items are set & other are null, then while updating, you will find that it will cause loss of data for those collumns which were null.

2)Projection returns list of object[] instead of pojo.
If we use projections, eg, select p.a,p.b,p.c from pojo p where p.d=?
We will get a list of objects & which we need to change back to pojo. My utility will do this task for you.
3)Paging logic rewrite
We need paging in every application. We need to write same code again & again. My utility does the code for you.
4)Don't write HQL
Sometime we think, SQL, HQL are the things which should be done by SQL expert. But mostly in getting the data for any case, we have to write hql. My utility will create HQL, run it & return back the list of pojos.


You can get the utiity from
http://sourceforge.net/projects/hibernateutil/

To read more about this
http://downloads.sourceforge.net/hibernateutil/hibernateutil-documentation-1.0.1.zip/
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry amit, but tomorrow, I am going to have to move this thread to the blatant advertising forum.

Thanks for your understanding

Mark
 
amit khosla
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello mark,
Its ok with me.
But it is not actually an advertisement.
It was just that I tried that as many people should get benefit from the thing i did.
I don't have any intention to publicize it, but intention is to help. As i don't want that if i faced any problem, then, that problem is faced again by others & i am not helping them if i can. I did this work first to help myself & as it helped me, so i made it available to public as open source.

Anyhow, its your forum, you can do anything with that. I don't have any issue with that, as I am not going to get anything from it, just at most I could get good advices to improve myself if i did some mistakes, to make myself better developer.

Thanks anyways,
Amit Khosla
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by amit khosla:
Hello mark,
Its ok with me.
But it is not actually an advertisement.
It was just that I tried that as many people should get benefit from the thing i did.
I don't have any intention to publicize it, but intention is to help. As i don't want that if i faced any problem, then, that problem is faced again by others & i am not helping them if i can. I did this work first to help myself & as it helped me, so i made it available to public as open source.

Anyhow, its your forum, you can do anything with that. I don't have any issue with that, as I am not going to get anything from it, just at most I could get good advices to improve myself if i did some mistakes, to make myself better developer.

Thanks anyways,
Amit Khosla


It is just about this is a link to something you created and you created a thread just to promote it (Meaning you weren't answering people's questions, or posing a question yourself)

And to be 100% consistent across the board, all threads like that get moved to Blatant Advertising. Such that someone down the road can't try to use that argument of, "Well you let so and so post a thread about their stuff, why can't I" I mean if Bill Gates came to us one more time with that argument over his blatant advertising of his small OS, we would finally be able to get some sleep over here.

Mark
 
amit khosla
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Mark,
you are right. This can happen & this must not happen to keep the forum a good interaction point. Do tell me one thing, if someone ask question related to this, then can i give reference or should that also not to be done.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic