some question about generator

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

some question about generator

zh y
hi mybatis developer:
first please say sorry to my poll english writing ability. if you can spent some time to read my email, i am really appreciate.
i had some question about KeyGenerator interface. in some real develop enviroment, such as my company, our 
database is base on database sharding, so my KeyGenerator rules can not base on the single database, such as the original  mysql support which is  auto increament primary key.
i need some way to custom my KeyGenerator strategy such as a center service what provide to geneate the key.
so why mybatis can not expose the KeyGenerator inteface to user that user can custom there own  keyGenerator strategy  or there has some way to solve the problems what i can know about .
wait for you write back, very very thank you for you.

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.