I have a (Java) class with many instance fields (many of which are optional). I would like all fields (i.e. class) to be immutable. So, I would like to use the Builder Pattern for constructing instances of the class.
Can I configure myBatis to create an instance of a class using the Builder Pattern? I know that I could have myBatis return a map and use that map to build the instance in my code. However, I'm looking for a way to configure this mapping (or use some convention) similar to how I can create instance via use of Java Beans and constructors.
Also, is it possible to configure myBatis to create a instance of a class using a static factory method?
I have a (Java) class with many instance fields (many of which are optional). I would like all fields (i.e. class) to be immutable. So, I would like to use the Builder Pattern for constructing instances of the class.
Can I configure myBatis to create an instance of a class using the Builder Pattern? I know that I could have myBatis return a map and use that map to build the instance in my code. However, I'm looking for a way to configure this mapping (or use some convention) similar to how I can create instance via use of Java Beans and constructors.
Also, is it possible to configure myBatis to create a instance of a class using a static factory method
--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mybatis-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--