Spring can handle constructor initialisation just fine, but hibernate can
definitely be a pain in the proverbial here.  If you're in Scala then have a
hunt around for wrapper libraries to help you out.



On 29 April 2010 16:36, Lyle <[email protected]> wrote:

> On Thu, Apr 29, 2010 at 7:41 AM, egervari <[email protected]> wrote:
>
>> How many of you are currently programming in a hybrid language such as
>> Scala?
>>
>> I'm finding it difficult to make things immutable. While I am
>> definitely using more immutability than I ever have in the past, I
>> don't think it's practical for some applications.
>
>
> I've been finding that I run into problems in Java with various frameworks
> which essentially require mutability. For example, I've created immutable
> domain objects (which would make no sense to mutate once created) only to
> have to turn them into mutable beans with setters and no-arg constructors
> for the benefit of Spring and/or Hibernate.
>
> -Lyle
>
> --
> You received this message because you are subscribed to the Google Groups
> "The Java Posse" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<javaposse%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/javaposse?hl=en.
>



-- 
Kevin Wright

mail/google talk: [email protected]
wave: [email protected]
skype: kev.lee.wright
twitter: @thecoda

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to