prevent cascade validation

View: New views
8 Messages — Rating Filter:   Alert me  

prevent cascade validation

by WangQi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

is that possible to preven cascade validation?

e.g. i want to update category. category related to an categorylog, while categorylog related to an User.

the problem is when i want to perform category.save() the user always report validation error.

how can i prevent it? thanks

wangqi

Re: prevent cascade validation

by james_027 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

WangQi wrote:
is that possible to preven cascade validation?

e.g. i want to update category. category related to an categorylog, while categorylog related to an User.

the problem is when i want to perform category.save() the user always report validation error.

how can i prevent it? thanks

wangqi
I have something like that which my problem is the cascade object doesn't report any validation error. I am using grails 0.4.2

james

Re: prevent cascade validation

by WangQi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

according to my debug (with 0.5 snapshot), the problem is the unique constraints.  (it seams doesn't work anymore)

in UniqueConstraint.java, line 106, it always throw NullPointException.

the last developer is graeme.  can u help on this?

wangqi

james_027 wrote:
Hi,

WangQi wrote:
is that possible to preven cascade validation?

e.g. i want to update category. category related to an categorylog, while categorylog related to an User.

the problem is when i want to perform category.save() the user always report validation error.

how can i prevent it? thanks

wangqi
I have something like that which my problem is the cascade object doesn't report any validation error. I am using grails 0.4.2

james

Re: prevent cascade validation

by WangQi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

further debug shows that unique constraints is broken in 0.5 snapshot.

in IdentDynamicMethod.java, line 49, domainClass is null if using unique constraint in domain class.

wangqi

according to my debug (with 0.5 snapshot), the problem is the unique constraints.  (it seams doesn't work anymore)

in UniqueConstraint.java, line 106, it always throw NullPointException.

the last developer is graeme.  can u help on this?

wangqi

james_027 wrote:
Hi,

WangQi wrote:
is that possible to preven cascade validation?

e.g. i want to update category. category related to an categorylog, while categorylog related to an User.

the problem is when i want to perform category.save() the user always report validation error.

how can i prevent it? thanks

wangqi
I have something like that which my problem is the cascade object doesn't report any validation error. I am using grails 0.4.2

james


Re: prevent cascade validation

by graemer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Please raise an issue

Cheers

On 4/18/07, WangQi <timosinko@...> wrote:

>
> further debug shows that unique constraints is broken in 0.5 snapshot.
>
> in IdentDynamicMethod.java, line 49, domainClass is null if using unique
> constraint in domain class.
>
> wangqi
>
> WangQi wrote:
> >
> > according to my debug (with 0.5 snapshot), the problem is the unique
> > constraints.  (it seams doesn't work anymore)
> >
> > in UniqueConstraint.java, line 106, it always throw NullPointException.
> >
> > the last developer is graeme.  can u help on this?
> >
> > wangqi
> >
> >
> > james_027 wrote:
> >>
> >> Hi,
> >>
> >>
> >> WangQi wrote:
> >>>
> >>> is that possible to preven cascade validation?
> >>>
> >>> e.g. i want to update category. category related to an categorylog,
> >>> while categorylog related to an User.
> >>>
> >>> the problem is when i want to perform category.save() the user always
> >>> report validation error.
> >>>
> >>> how can i prevent it? thanks
> >>>
> >>> wangqi
> >>>
> >>
> >> I have something like that which my problem is the cascade object doesn't
> >> report any validation error. I am using grails 0.4.2
> >>
> >> james
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/prevent-cascade-validation-tf3598579.html#a10052283
> Sent from the grails - user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


--
Graeme Rocher
Grails Project Lead
http://grails.org

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: prevent cascade validation

by Marc Palmer Local :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 18 Apr 2007, at 03:23, james_027 wrote:

>
> Hi,
>
>
> WangQi wrote:
>>
>> is that possible to preven cascade validation?
>>
>> e.g. i want to update category. category related to an  
>> categorylog, while
>> categorylog related to an User.
>>
>> the problem is when i want to perform category.save() the user always
>> report validation error.
>>
>> how can i prevent it? thanks
>>
>> wangqi
>>
>
> I have something like that which my problem is the cascade object  
> doesn't
> report any validation error. I am using grails 0.4.2

Cascading validation is not supported in 0.4.2 it has only last week  
been added to 0.5 HEAD.

Marc


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: prevent cascade validation

by Daniel.Sun :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi WangQi,

I have a similar problem with yours.
As far as I remember, there was a message "CascadeValidationToOne" in the stacktrace when I run an original app developped with Grails0.4.2 and upgraded to Grails0.5-snapshot.

Best regards,
Daniel.Sun

===================================================
Error INFO
------------------------------------------------------------------------------------------------------
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'pluginManager' defined in class path resource [applicationContext.xml]:
Invocation of init method failed; nested exception is groovy.lang.MissingMethodE
xception: No signature of method: Book.bName() is applicable for argument types:
 (java.util.HashMap) values: {["blank":false, "size":1..50]}
---------------------------------------------------------------------------------------------------------


according to my debug (with 0.5 snapshot), the problem is the unique constraints.  (it seams doesn't work anymore)

in UniqueConstraint.java, line 106, it always throw NullPointException.

the last developer is graeme.  can u help on this?

wangqi

james_027 wrote:
Hi,

WangQi wrote:
is that possible to preven cascade validation?

e.g. i want to update category. category related to an categorylog, while categorylog related to an User.

the problem is when i want to perform category.save() the user always report validation error.

how can i prevent it? thanks

wangqi
I have something like that which my problem is the cascade object doesn't report any validation error. I am using grails 0.4.2

james


Re: prevent cascade validation

by WangQi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

done, see GRAILS-1046

cheers,
wangqi

graemer wrote:
Please raise an issue

Cheers

On 4/18/07, WangQi <timosinko@gmail.com> wrote:
>
> further debug shows that unique constraints is broken in 0.5 snapshot.
>
> in IdentDynamicMethod.java, line 49, domainClass is null if using unique
> constraint in domain class.
>
> wangqi
>
> WangQi wrote:
> >
> > according to my debug (with 0.5 snapshot), the problem is the unique
> > constraints.  (it seams doesn't work anymore)
> >
> > in UniqueConstraint.java, line 106, it always throw NullPointException.
> >
> > the last developer is graeme.  can u help on this?
> >
> > wangqi
> >
> >
> > james_027 wrote:
> >>
> >> Hi,
> >>
> >>
> >> WangQi wrote:
> >>>
> >>> is that possible to preven cascade validation?
> >>>
> >>> e.g. i want to update category. category related to an categorylog,
> >>> while categorylog related to an User.
> >>>
> >>> the problem is when i want to perform category.save() the user always
> >>> report validation error.
> >>>
> >>> how can i prevent it? thanks
> >>>
> >>> wangqi
> >>>
> >>
> >> I have something like that which my problem is the cascade object doesn't
> >> report any validation error. I am using grails 0.4.2
> >>
> >> james
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/prevent-cascade-validation-tf3598579.html#a10052283
> Sent from the grails - user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


--
Graeme Rocher
Grails Project Lead
http://grails.org

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email