Re: [Hibernate] reveng optimistic locking

2005-12-14 Thread Max Rydahl Andersen
On Wed, 14 Dec 2005 20:40:55 +0100, Gavin King <[EMAIL PROTECTED]>  
wrote:



Sure, any app that has conversations requires it. This is not in any way
Seam-specific...


No - but I did not plan on adding optimistic locking before later.
I wanted to add it now because I felt it were kinda required to make
the seam reveng work well...

/max



-Original Message-
From: Max Andersen
Sent: Thursday, December 15, 2005 6:37 AM
To: Gavin King; Hibernate development
Subject: Re: [Hibernate] reveng optimistic locking

On Wed, 14 Dec 2005 20:29:13 +0100, Gavin King <[EMAIL PROTECTED]>
wrote:


Why would it break Seam??


I didn't say it would break Seam, i'm saying that the logic used when
doing long conversations kinda requires optimistic locking to work well,
right ?

/max



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Max
Rydahl Andersen
Sent: Thursday, December 15, 2005 1:59 AM
To: Hibernate development
Subject: [Hibernate] reveng optimistic locking

Hi,

One caveat with reveng to the seam app is that we dont currently have
support for detecting optimistic locking for the generated classes -
and I reckon it kinda breaks some of the seam logic.

Do you think it is safe to auto-enable optlock for columns with the
name "version" and a primitive numeric type or should it be done
explicitly in reveng.xml ?

I'm mostly for having a "Auto-detect optimistc locking columns" option



in the reverseengineering options ...and i'm also leaning towards
having it enabled by default (who don't use optimistic locking anyway
;)

There might be "quirks" in larger reveng situations where it should be



possible to enable/disable "autodetect optimistic locking" for certain



columns/tables.





--
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]




--
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] reveng optimistic locking

2005-12-14 Thread Gavin King
Sure, any app that has conversations requires it. This is not in any way
Seam-specific... 

-Original Message-
From: Max Andersen 
Sent: Thursday, December 15, 2005 6:37 AM
To: Gavin King; Hibernate development
Subject: Re: [Hibernate] reveng optimistic locking

On Wed, 14 Dec 2005 20:29:13 +0100, Gavin King <[EMAIL PROTECTED]>
wrote:

> Why would it break Seam??

I didn't say it would break Seam, i'm saying that the logic used when
doing long conversations kinda requires optimistic locking to work well,
right ?

/max

>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Max 
> Rydahl Andersen
> Sent: Thursday, December 15, 2005 1:59 AM
> To: Hibernate development
> Subject: [Hibernate] reveng optimistic locking
>
> Hi,
>
> One caveat with reveng to the seam app is that we dont currently have 
> support for detecting optimistic locking for the generated classes - 
> and I reckon it kinda breaks some of the seam logic.
>
> Do you think it is safe to auto-enable optlock for columns with the 
> name "version" and a primitive numeric type or should it be done 
> explicitly in reveng.xml ?
>
> I'm mostly for having a "Auto-detect optimistc locking columns" option

> in the reverseengineering options ...and i'm also leaning towards 
> having it enabled by default (who don't use optimistic locking anyway 
> ;)
>
> There might be "quirks" in larger reveng situations where it should be

> possible to enable/disable "autodetect optimistic locking" for certain

> columns/tables.
>



--
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] reveng optimistic locking

2005-12-14 Thread Max Rydahl Andersen
On Wed, 14 Dec 2005 20:29:13 +0100, Gavin King <[EMAIL PROTECTED]>  
wrote:



Why would it break Seam??


I didn't say it would break Seam, i'm saying that the logic used when
doing long conversations kinda requires optimistic locking to work well,  
right ?


/max



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Max
Rydahl Andersen
Sent: Thursday, December 15, 2005 1:59 AM
To: Hibernate development
Subject: [Hibernate] reveng optimistic locking

Hi,

One caveat with reveng to the seam app is that we dont currently have
support for detecting optimistic locking for the generated classes - and
I reckon it kinda breaks some of the seam logic.

Do you think it is safe to auto-enable optlock for columns with the name
"version" and a primitive numeric type or should it be done explicitly
in reveng.xml ?

I'm mostly for having a "Auto-detect optimistc locking columns" option
in the reverseengineering options ...and i'm also leaning towards having
it enabled by default (who don't use optimistic locking anyway ;)

There might be "quirks" in larger reveng situations where it should be
possible to enable/disable "autodetect optimistic locking" for certain
columns/tables.





--
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] reveng optimistic locking

2005-12-14 Thread Gavin King
I say just let the user specify the column name they use for versions...


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Emmanuel Bernard
Sent: Thursday, December 15, 2005 2:19 AM
To: Max Andersen
Cc: Hibernate development
Subject: Re: [Hibernate] reveng optimistic locking

Can(t you write a pluggable guess strategy, like the namingstrategy but
for guessing. This open the doors for martian models

Max Rydahl Andersen wrote:

> Hi,
>
> One caveat with reveng to the seam app is that we dont currently have 
> support for detecting optimistic locking for the generated classes - 
> and I  reckon it kinda breaks some of the seam logic.
>
> Do you think it is safe to auto-enable optlock for columns with the 
> name  "version" and a primitive numeric type or should it be done 
> explicitly in reveng.xml ?
>
> I'm mostly for having a "Auto-detect optimistc locking columns" option

> in  the reverseengineering options ...and i'm also leaning towards 
> having it  enabled by default (who don't use optimistic locking anyway

> ;)
>
> There might be "quirks" in larger reveng situations where it should be

> possible to enable/disable "autodetect optimistic locking" for certain

> columns/tables.
>



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems?  Stop!  Download the new AJAX search engine that
makes searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


RE: [Hibernate] reveng optimistic locking

2005-12-14 Thread Gavin King
Why would it break Seam?? 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Max
Rydahl Andersen
Sent: Thursday, December 15, 2005 1:59 AM
To: Hibernate development
Subject: [Hibernate] reveng optimistic locking

Hi,

One caveat with reveng to the seam app is that we dont currently have
support for detecting optimistic locking for the generated classes - and
I reckon it kinda breaks some of the seam logic.

Do you think it is safe to auto-enable optlock for columns with the name
"version" and a primitive numeric type or should it be done explicitly
in reveng.xml ?

I'm mostly for having a "Auto-detect optimistc locking columns" option
in the reverseengineering options ...and i'm also leaning towards having
it enabled by default (who don't use optimistic locking anyway ;)

There might be "quirks" in larger reveng situations where it should be
possible to enable/disable "autodetect optimistic locking" for certain
columns/tables.

-- 
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] reveng optimistic locking

2005-12-14 Thread Max Rydahl Andersen
Can(t you write a pluggable guess strategy, like the namingstrategy but  
for guessing. This open the doors for martian models


Sure and that is also my intention (done with everything else that implies  
"guessing"

in reveng).

The question is more if it should be default and if yes, what is a good  
default in this case.


/max


Max Rydahl Andersen wrote:


Hi,

One caveat with reveng to the seam app is that we dont currently have   
support for detecting optimistic locking for the generated classes -  
and I  reckon it kinda breaks some of the seam logic.


Do you think it is safe to auto-enable optlock for columns with the  
name  "version" and a primitive numeric type or

should it be done explicitly in reveng.xml ?

I'm mostly for having a "Auto-detect optimistc locking columns" option  
in  the reverseengineering options ...and i'm also leaning towards  
having it  enabled by default (who don't use optimistic locking anyway  
;)


There might be "quirks" in larger reveng situations where it should be   
possible to enable/disable "autodetect optimistic locking" for certain   
columns/tables.








--
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] reveng optimistic locking

2005-12-14 Thread Emmanuel Bernard
Can(t you write a pluggable guess strategy, like the namingstrategy but 
for guessing. This open the doors for martian models


Max Rydahl Andersen wrote:


Hi,

One caveat with reveng to the seam app is that we dont currently have  
support for detecting optimistic locking for the generated classes - 
and I  reckon it kinda breaks some of the seam logic.


Do you think it is safe to auto-enable optlock for columns with the 
name  "version" and a primitive numeric type or

should it be done explicitly in reveng.xml ?

I'm mostly for having a "Auto-detect optimistc locking columns" option 
in  the reverseengineering options ...and i'm also leaning towards 
having it  enabled by default (who don't use optimistic locking anyway ;)


There might be "quirks" in larger reveng situations where it should 
be  possible to enable/disable "autodetect optimistic locking" for 
certain  columns/tables.






---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel