Yes, actually.
I'd prefer to make some properties read only, having them set only in
the constructor. I'd use this for simple, immutable, value types, as
well as for some mandatory properties on mutable objects.
Alexandre Grenier wrote:
You mean to allow read only instance members?
-----Original Message-----
From: Peter Mills [mailto:[EMAIL PROTECTED]
Sent: Monday, July 17, 2006 8:44 PM
To: [email protected]
Subject: ResultMap with constructor injection
Greetings,
It does not currently seem possible to create a resultMap, in DataMapper
1.5 Beta, which only does constructor based injection. If there is no
result element, then execution fails with an
XmlSchemaValidationException. If I'm not in error, and this
functionality doesn't exist, it would be greatly appreciated.
Cheers,
Peter
Exception Message:
"The element 'resultMap' in namespace 'http://ibatis.apache.org/mapping'
has incomplete content. List of possible elements expected: 'result' in
namespace 'http://ibatis.apache.org/mapping'."