You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Dain Sundstrom <da...@iq80.com> on 2007/02/15 01:13:15 UTC

Major CMP over JPA changes coming

I have a large change to the CMP over JPA code.  After a tiny bit of  
work with the tck, I found that we need to make a some changes to the  
generation strategy for CMP beans.  Specifically, the TCK likes to  
reuse CMP bean implementation classes for several deployments and JPA  
uses the implementation class to differentiate entities.  Of course,  
the two usages are in direct conflict, so when we detect reuse of  
bean implementation classes for CMP1, we generate an empty subclass.   
This kind of sucks, but most apps don't do this.

Unfortunately, this change caused a bunch of bugs in OpenJPA to  
surface, so instead of waiting for fixes, I coded around these.  Also  
the generation code tends to effect lots of other stuff and I got a  
bit excited and fixed more stuff, so this little fix has ballooned  
into a major patch.

In the future, I'll try to keep my patches small and readable.

I hope to have it committed tomorrow,

-dain


Re: Major CMP over JPA changes coming

Posted by Dain Sundstrom <da...@iq80.com>.
It is all committed now, but it does contain some hacks I'm going to  
clean up now.

On Feb 15, 2007, at 12:47 AM, Jacek Laskowski wrote:

> You keep impress me. I wish I could spend some time having as much fun
> as you had introducing workaround instead of awaiting fixes (call it
> whatever you like, but I can see only fun of yours reading your hack
> reports). I wonder what would happen if you stayed with Dave's for a
> couple of weeks with no other resposibilities than coding!? ;-)

David and I are neibors, so now we just need some responsibility-free  
time :)

>> In the future, I'll try to keep my patches small and readable.
>
> That would be much appreciated for such humble souls like we. Yours
> lurkers and followers!

Yep.  When I'm following projects, I like to follow the commits also.

-dain

Re: Major CMP over JPA changes coming

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On 2/15/07, Dain Sundstrom <da...@iq80.com> wrote:

> Unfortunately, this change caused a bunch of bugs in OpenJPA to
> surface, so instead of waiting for fixes, I coded around these.  Also
> the generation code tends to effect lots of other stuff and I got a
> bit excited and fixed more stuff, so this little fix has ballooned
> into a major patch.

You keep impress me. I wish I could spend some time having as much fun
as you had introducing workaround instead of awaiting fixes (call it
whatever you like, but I can see only fun of yours reading your hack
reports). I wonder what would happen if you stayed with Dave's for a
couple of weeks with no other resposibilities than coding!? ;-)

> In the future, I'll try to keep my patches small and readable.

That would be much appreciated for such humble souls like we. Yours
lurkers and followers!

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl