How does Fixture persist data

4 views
Skip to first unread message

leifg

unread,
Dec 22, 2009, 6:48:14 AM12/22/09
to play-framework
I was just running some JUnit tests and found out, that loading data
in the table by Fixtures.load("data.yml") does not run the constructor
of the objects.

That is very unfortunate as I use some logic to calculate values in
the constructor some object. Is there anyway that logic can be
triggered?

Guillaume Bort

unread,
Dec 22, 2009, 7:01:12 AM12/22/09
to play-fr...@googlegroups.com
As hibernate does, it use the default constructor of theclass. You
need to provide one to be sure that it will be called. It can be
private if you want.

> --
>
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
>
>

Reply all
Reply to author
Forward
0 new messages