3 ms·
Why a XML mapping file? If you don't like getters/setters no one is forcing you. A fully function JPA entity class is: @Entity public class TableName {
by matt_heimer 13y ago
Why a XML mapping file? If you don't like getters/setters no one is forcing you. A fully function JPA entity class is:
@Entity
public class TableName {
@Id public int primaryKeyColumnName;
public String someOtherColumnName;
@Column(name="DESC") public String fieldThatDidNotMatchColumnName;
}
How the heck did you get to thousands of lines of code without even having an functionality? You can create a RESTful webservice that does basic CRUD ops to a database in just a handful of lines....
And unfortunately there are tons of legacy APIs (backwards compatibility...) available in any Java EE app server like GlassFish. Hopefully they really will start pruning things from the spec.
Do you want to create a basic CRUD web service with your hip-Startupy method of choice and I'll create a Java equivalent so we can compare? I'm curious about how it would play out.