Over a million developers have joined DZone.

Quick-Prototype POJO With CamelCase Using XSLT

·
// If you've ever been frustrated trying to write an enormous POJO, here's a way to speed the 
// process a little. It's far from perfect, and could use some tweaking, but this XSLT code will 
// spit out a POJO much faster than you could do it by hand.


TableDDLs.xml

	
            
            
            
        
CreatePOJOs.xsl abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ /** * example of POJO output * */ package pojo; import java.sql.Date; /** * @author [your name here] * */ public class { private Long String Date = null; public Long String Date get() { return ; } public void set(Long String Date ) { this. = ; } } ----------------------------------------------------------------------------------------------- this. = null; protected String = null; = null; ColumnName= CamelCasedColumn:
Topics:

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}