Home  »  Windows  »  Misc Software Development
pojo generator 1-0
pojo generator 1-0
Authorize : Others Free

Requirements : Java Runtime Environment

Publisher : Erik Jan de Wit

OfficeWebsite : http://sourceforge.net/users/erikjan_dewit

OS Support : Windows XP, 2000, 98

Servers
  • USA
Content
The PojoGenerator is a utility that will generate test data for your data model.
EditByBSEditor: The PojoGenerator is build using Spring and if your application also uses spring its dead simple to get it going. If you do not use spring, dont worry you can still use it. So yourre backed isnt done yet so you properly defined an interface. This is were the PojoGenerator Steps in. The PojoGenerator dynamically implements this interface by using spring aop. When youre code uses one of the methods of youre interface the PojoGenerator will try to figure out what domain object it needs to Create, this is what we call Domain item revolving, methods to determine this) and instantiate it. Domain item resolving there are currently two different types:

* return type analysis
* method name analysis

Return type analysis is a simple method by using reflection we can easily figure out what to return. This will only FAIL when youre program expects an collection and you are using java1.4. Method name will take the name of method and try to find a domain model object name in it. So if youre interface has a method like findAllCatByName, this method will succeed and know its Cats we need to instantiate. So the PojoGenerator knows what object to create, than it needs to initialize the fields of this object. When you dont configure anything its hard to generate useful data. The PojoGenerator comes with standard instantiators for the common classes for example an int in your domain object will get a random value Between 1 and 15. This is properly not an very good value for the cat age, or what ever the field in youre domain model represents. To produce more meaningful data a configuration needs to be made in xml. Well discuss the configuration in chunks in the end well put it all together. you can free download Pojo Generator 1.0 now.

Hot Download

New Download