How to Switch Eclipse Crystal Reports Data Source to POJO
May 22nd, 2009
This is really very cute:
Pick a stupid database connection (the plugin install provides the Xtreme db sample).
Grab a table and plunk it into the Data section of the report
Create your POJO
Under the Crystal Reports tab at the top of the screen in Eclipse click on Set Data Source
Click OK on the warning (doesn’t really mean anything as far as I can tell so far)
Select the New POJO option
Specify the POJO package/class you created above
In the discrepancy comparison between the dummy db table and the POJO either Remove and change every column as you see fit. All of the Remove options must be eliminated.
Hit Ok.
You now have your POJO as the CR data source.
BTW, if you change the POJO then you have to go through a similar set of steps.