RE: Hibernate -> Custom DAO for AWS component

2012-08-15 Thread Alex Huang
. --Alex > -Original Message- > From: Will Chan [mailto:will.c...@citrix.com] > Sent: Wednesday, August 15, 2012 5:33 PM > To: cloudstack-dev@incubator.apache.org > Subject: RE: Hibernate -> Custom DAO for AWS component > > I'm pretty sure you can because the Usage S

RE: Hibernate -> Custom DAO for AWS component

2012-08-15 Thread Will Chan
and 'cloud' db (used by EC2 to pull > cloudstack configuration/service offering/default zone info) With hibernate > we could do that. > > -Prachi > > -Original Message- > From: Rajesh Battala [mailto:rajesh.batt...@citrix.com] > Sent: Monday, August

RE: Hibernate -> Custom DAO for AWS component

2012-08-15 Thread Prachi Damle
ng/default zone info) With hibernate we could do that. -Prachi -Original Message- From: Rajesh Battala [mailto:rajesh.batt...@citrix.com] Sent: Monday, August 13, 2012 10:46 PM To: cloudstack-dev@incubator.apache.org Subject: RE: Hibernate -> Custom DAO for AWS component I will r

RE: Hibernate -> Custom DAO for AWS component

2012-08-14 Thread Alex Huang
> -Original Message- > From: Darren Shepherd [mailto:dar...@godaddy.com] > Sent: Monday, August 13, 2012 1:29 PM > To: cloudstack-dev@incubator.apache.org > Subject: RE: Hibernate -> Custom DAO for AWS component > > I think there's two points. > > 1

RE: Hibernate -> Custom DAO for AWS component

2012-08-13 Thread Rajesh Battala
@incubator.apache.org Subject: RE: Hibernate -> Custom DAO for AWS component I think there's two points. 1) Raw SQL is bad, so even in a time crunch moving to the custom CloudStack DAO implementation *should* have been better. 2) I'd rather see a JPA based solution then moving to custom CloudStack

RE: Hibernate -> Custom DAO for AWS component

2012-08-13 Thread Will Chan
> -Original Message- > From: Darren Shepherd [mailto:dar...@godaddy.com] > Sent: Monday, August 13, 2012 1:29 PM > To: cloudstack-dev@incubator.apache.org > Subject: RE: Hibernate -> Custom DAO for AWS component > > > I think Alex and I agree on point 1,

RE: Hibernate -> Custom DAO for AWS component

2012-08-13 Thread Darren Shepherd
sure if anybody agrees with point 2. What's the time frame for when this was supposed to be done? Darren Original Message ---- Subject: RE: Hibernate -> Custom DAO for AWS component From: Will Chan Date: Mon, August 13, 2012 12:56 pm To: "cloudstack-dev@incubator.apa

RE: Hibernate -> Custom DAO for AWS component

2012-08-13 Thread Will Chan
> -Original Message- > From: Alex Huang [mailto:alex.hu...@citrix.com] > Sent: Monday, August 13, 2012 10:33 AM > To: cloudstack-dev@incubator.apache.org > Subject: RE: Hibernate -> Custom DAO for AWS component > > > > > -Original Message- >

RE: Hibernate -> Custom DAO for AWS component

2012-08-13 Thread Alex Huang
> -Original Message- > From: Darren Shepherd [mailto:dar...@godaddy.com] > Sent: Sunday, August 12, 2012 8:25 AM > To: cloudstack-dev@incubator.apache.org > Subject: Hibernate -> Custom DAO for AWS component > > All, > > I was just reviewing https://reviews.apache.org/r/6557/diff/ for t

RE: Hibernate

2012-08-09 Thread Rajesh Battala
Battala -Original Message- From: David Nalley [mailto:da...@gnsa.us] Sent: Thursday, August 09, 2012 8:43 PM To: cloudstack-dev@incubator.apache.org Subject: Re: Hibernate Rajesh, is this done? --David On Mon, Jul 16, 2012 at 11:49 PM, Rajesh Battala wrote: > Yes Ewan, I would be do

Re: Hibernate

2012-08-09 Thread Adrian Cole
sage- > >> From: Ewan Mellor [mailto:ewan.mel...@eu.citrix.com] > >> Sent: Tuesday, July 17, 2012 9:03 AM > >> To: cloudstack-dev@incubator.apache.org > >> Subject: RE: Hibernate > >> > >> OK, good. So it's a small job. So is Rajesh doing

Re: Hibernate

2012-08-09 Thread David Nalley
sday, July 17, 2012 9:03 AM >> To: cloudstack-dev@incubator.apache.org >> Subject: RE: Hibernate >> >> OK, good. So it's a small job. So is Rajesh doing that? >> >> Ewan. >> >> > -Original Message- >> > From: Alex Huang [mailto

RE: Hibernate

2012-07-16 Thread Rajesh Battala
Yes Ewan, I would be doing this work. Thanks Rajesh Battala > -Original Message- > From: Ewan Mellor [mailto:ewan.mel...@eu.citrix.com] > Sent: Tuesday, July 17, 2012 9:03 AM > To: cloudstack-dev@incubator.apache.org > Subject: RE: Hibernate > > OK, good. So it&

RE: Hibernate

2012-07-16 Thread Ewan Mellor
OK, good. So it's a small job. So is Rajesh doing that? Ewan. > -Original Message- > From: Alex Huang [mailto:alex.hu...@citrix.com] > Sent: 16 July 2012 17:03 > To: cloudstack-dev@incubator.apache.org > Subject: RE: Hibernate > > My understanding is it&

RE: Hibernate

2012-07-16 Thread Alex Huang
PM > To: cloudstack-dev@incubator.apache.org > Subject: RE: Hibernate > > If I read this infinitely long thread correctly, the conclusion is that > CloudStack/awsapi needs to be rewritten to use the CloudStack DAO instead > of Hibernate. Is that correct? > > If so, who is do

RE: Hibernate

2012-07-16 Thread Ewan Mellor
age- > From: Alex Huang [mailto:alex.hu...@citrix.com] > Sent: Monday, July 02, 2012 11:31 PM > To: cloudstack-dev@incubator.apache.org > Subject: RE: Hibernate > > Rajesh, > > You should use the existing CloudStack DAO framework. If cloudstack > will move to another ORM

RE: Hibernate

2012-07-03 Thread Alex Huang
> I don't want to speak for Alex, but I have heard him mention such a change > number of times, and have seen it in his slides as well. > > But the larger sense is that if we are going to change something in AWSAPI > for communicating to the database, it should be something that we are > comfortab

RE: Hibernate

2012-07-02 Thread Alex Huang
Which would mean your code should migrate over along with the rest of the changes. --Alex > -Original Message- > From: Rajesh Battala [mailto:rajesh.batt...@citrix.com] > Sent: Monday, July 02, 2012 10:59 PM > To: cloudstack-dev@incubator.apache.org > Su

RE: Hibernate

2012-07-02 Thread Rajesh Battala
> -Original Message- > From: Kelven Yang [mailto:kelven.y...@citrix.com] > Sent: Saturday, June 30, 2012 3:31 AM > To: cloudstack-dev@incubator.apache.org > Subject: RE: Hibernate > > > > > -Original Message- > > From: David Nalley [mailto:d

RE: Hibernate

2012-06-29 Thread Kelven Yang
> -Original Message- > From: David Nalley [mailto:da...@gnsa.us] > Sent: Friday, June 29, 2012 10:37 AM > To: cloudstack-dev@incubator.apache.org > Subject: Re: Hibernate > > On Fri, Jun 29, 2012 at 12:13 PM, Rajesh Battala > wrote: > > > > >

Re: Hibernate

2012-06-29 Thread David Nalley
On Fri, Jun 29, 2012 at 12:13 PM, Rajesh Battala wrote: > > >> -Original Message- >> From: David Nalley [mailto:da...@gnsa.us] >> Sent: Friday, June 29, 2012 8:40 PM >> To: cloudstack-dev@incubator.apache.org >> Subject: Re: Hibernate >> >>

RE: Hibernate

2012-06-29 Thread Kelven Yang
orate more details about the problem you were facing and why MangoDB can solve it nicely? Kelven > -Original Message- > From: Frank Zhang [mailto:frank.zh...@citrix.com] > Sent: Thursday, June 28, 2012 6:37 PM > To: cloudstack-dev@incubator.apache.org > Subject: RE: Hiber

RE: Hibernate

2012-06-29 Thread Rajesh Battala
> -Original Message- > From: David Nalley [mailto:da...@gnsa.us] > Sent: Friday, June 29, 2012 8:40 PM > To: cloudstack-dev@incubator.apache.org > Subject: Re: Hibernate > > On Fri, Jun 29, 2012 at 9:27 AM, Rajesh Battala > wrote: > > > > Shall I pr

Re: Hibernate

2012-06-29 Thread David Nalley
On Fri, Jun 29, 2012 at 9:27 AM, Rajesh Battala wrote: > > Shall I proceed to replace Hibernate Framework with Spring JDBC. > This is not a design decision to take lightly, or rush - as we've talked about replacing the custom ORM that CloudStack uses as well - we'd want to make a decision on some

RE: Hibernate

2012-06-29 Thread Alex Huang
> > > Shall I proceed to replace Hibernate Framework with Spring JDBC. > We should rethink anything that requires raw SQL. Even object queries would be better. At least eclipse has a way to tell you that the query and the actual object have diverged. --Alex

RE: Hibernate

2012-06-29 Thread Rajesh Battala
2 3:24 AM > To: cloudstack-dev@incubator.apache.org > Subject: RE: Hibernate > > Rajesh, can you provide some rationale for this choice versus other options. > > -kevin > > > -Original Message- > > From: Rajesh Battala [mailto:rajesh.batt...@citrix.com] >

Re: Hibernate

2012-06-28 Thread David Avenante
e don't mind it, > > > the attach operation is quite annoying. JPA/Hibernate has a method > > > "detach" entity, but they don't have the opposite method to 'attach' > > > an entity. Simply google "jpa attach", there are tons of que

RE: Hibernate

2012-06-28 Thread Frank Zhang
k to persistence. The usual > > way is to call merge(), but it has the side effect that if you change > > the entity accidentally, your change would be written to database, this is > the source of mysterious bug. > > > >In CloudStack, you can use id(the primary

Re: Hibernate

2012-06-28 Thread David Avenante
, though it's not as intuitive > as directly wiring whole relational object in code, it does its job well in > practice. > > > -Original Message- > > From: David Avenante [mailto:d.avena...@gmail.com] > > Sent: Thursday, June 28, 2012 4:24 PM > > To: c

RE: Hibernate

2012-06-28 Thread Frank Zhang
#x27;s not as intuitive as directly wiring whole relational object in code, it does its job well in practice. > -Original Message- > From: David Avenante [mailto:d.avena...@gmail.com] > Sent: Thursday, June 28, 2012 4:24 PM > To: cloudstack-dev@incubator.apache.org > Subject

Re: Hibernate

2012-06-28 Thread David Avenante
ne 27, 2012 10:44 PM > > To: cloudstack-dev@incubator.apache.org > > Subject: RE: Hibernate > > > > Hi, > > > > I had started working on this issue. As Hibernate is LGPL we cannot use > this in > > our Apache repo. > > I had discussed with Chiradeep an

RE: Hibernate

2012-06-28 Thread Frank Zhang
Kelven Yang [mailto:kelven.y...@citrix.com] > Sent: Thursday, June 28, 2012 4:00 PM > To: cloudstack-dev@incubator.apache.org > Subject: RE: Hibernate > > A couple of points, > > 1. Spring is under Apache license > 2. Spring provides pretty good JDBC wrapper like SimpleJdb

RE: Hibernate

2012-06-28 Thread Kelven Yang
gt; Subject: RE: Hibernate > > Rajesh, can you provide some rationale for this choice versus other > options. > > -kevin > > > -Original Message- > > From: Rajesh Battala [mailto:rajesh.batt...@citrix.com] > > Sent: Wednesday, June 27, 2012 10:44 PM > >

RE: Hibernate

2012-06-28 Thread Kevin Kluge
Rajesh, can you provide some rationale for this choice versus other options. -kevin > -Original Message- > From: Rajesh Battala [mailto:rajesh.batt...@citrix.com] > Sent: Wednesday, June 27, 2012 10:44 PM > To: cloudstack-dev@incubator.apache.org > Subject: RE: Hibernate

Re: Hibernate

2012-06-28 Thread David Avenante
w about the work you were doing or planning, which is > problematic in its own right. > > > --David > > > > >> -Original Message- > >> From: Rajesh Battala [mailto:rajesh.batt...@citrix.com] > >> Sent: Wednesday, June 27, 2012 10:44 PM > >&

Re: Hibernate

2012-06-28 Thread David Nalley
ailto:rajesh.batt...@citrix.com] >> Sent: Wednesday, June 27, 2012 10:44 PM >> To: cloudstack-dev@incubator.apache.org >> Subject: RE: Hibernate >> >> Hi, >> >> I had started working on this issue. As Hibernate is LGPL we cannot use this >> in &

RE: Hibernate

2012-06-28 Thread Alex Huang
10:18 AM > To: cloudstack-dev@incubator.apache.org > Subject: RE: Hibernate > > Sorry please ignore my former mail > > > > Am looking at replace Hibernate with Spring Framework > > > simpleJDBCTemplate. > Does this mean ripping out Hibernate? Then we don

RE: Hibernate

2012-06-28 Thread Frank Zhang
ORM to raw JDBC. > -Original Message- > From: Frank Zhang [mailto:frank.zh...@citrix.com] > Sent: Thursday, June 28, 2012 10:11 AM > To: cloudstack-dev@incubator.apache.org > Subject: RE: Hibernate > > Spring is able to downgrade dependency of hibernate from compile t

RE: Hibernate

2012-06-28 Thread Frank Zhang
is distributed with popular Linux distribution, otherwise Spring won't help. > -Original Message- > From: Rajesh Battala [mailto:rajesh.batt...@citrix.com] > Sent: Wednesday, June 27, 2012 10:44 PM > To: cloudstack-dev@incubator.apache.org > Subject: RE: Hibernate > >

RE: Hibernate

2012-06-27 Thread Rajesh Battala
e.org > Subject: Re: Hibernate > > The ORM in the AWS module is 90% used by S3. > The dependency is mostly abstracted by a DAO layer; there is another > dependency on transactions. I believe Rajesh B is already working on this > aspect and there is a bug open on it. > > --

Re: Hibernate

2012-06-27 Thread Chiradeep Vittal
The ORM in the AWS module is 90% used by S3. The dependency is mostly abstracted by a DAO layer; there is another dependency on transactions. I believe Rajesh B is already working on this aspect and there is a bug open on it. -- Chiradeep On Jun 27, 2012, at 21:52, "David Nalley" wrote: >

Re: Hibernate

2012-06-27 Thread David Nalley
On Jun 28, 2012, at 12:45 AM, Sheng Liang wrote: >> In short, I see three options (please comment if you see more) 1. Rip out >> hibernate and replace with some other ORM 2. Make the AWS API bits an >> optional non-default part of the build. > 3. Declare that hibernate is a system requireme

RE: Hibernate

2012-06-27 Thread Sheng Liang
> In short, I see three options (please comment if you see more) 1. Rip out > hibernate and replace with some other ORM 2. Make the AWS API bits an > optional non-default part of the build. 3. Declare that hibernate is a system requirement for CloudStack I prefer option #1. It is the cleanest. I