Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

MyBatis Generator Support for method type parameters #739

Open
GoogleCodeExporter opened this issue Apr 21, 2015 · 0 comments
Open

MyBatis Generator Support for method type parameters #739

GoogleCodeExporter opened this issue Apr 21, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

As a part of a plugin to add methods to implement a GXT interface in the 
generated data classes, I need to be able to create the methods with the 
following signature

public <X> X get(String property)

For my purposes adding a List<FullyQualifiedJavaType> typeParameter  to the 
org.mybatis.generator.api.dom.java.Method class with get and add methods like 
the parameter list, along with the associated code for writing the list in 
angle brackets to the StringBuffer in the getFormattedContent method will do 
the trick.

I don't know, however, whether there are any other steps that would need to be 
done to support other generic syntax like <X extends Blah>.

Original issue reported on code.google.com by malcolm....@bms.com on 12 Dec 2012 at 10:04

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant