Git Product home page Git Product logo

fawkez's People

Contributors

amandel avatar mgriffel avatar mrumpf avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

pj164

fawkez's Issues

Use annotations and generics

That means fix all generics related warnings by adding generics type information.

  1. With JPA it is still necessary to write a lot of boilerplate code for the entity- / pojo- / dto- / ValueObject- classes. It is possible to add a field to the database table quiet easily but you then still need to update all the equals, toString... methods. With the jCoderZ SimpleTypesGenerator this has been much easier since ages. Just add the one field to the xml and with the next build you get a new class that supports the new field, just like any other.

To support JPA we need to support a place for java annotations in the generated classes. As with the support for xdoclet this is just a question of adding a element / attribute to the class and the fields.

  1. JPA AFAIK does not support the use of final or immutable classes. This is a step back from the idea to make dto like classes as immutable as possible. Might be we find a way to support this easily? (like StringBuilder vs. String using the BuilderPattern)? Might be a 2nd step?

  2. Not only because of (2) there is no easy way to use a SimpleType? in JPA. Embeddable is far less powerful than the hibernate user types we used before. We seem to be limited to 'String' for alphanumerical data types again, like Street, Name, UUID and so on. Might there is a solution for that?

  3. The xml we defined for the codegenerators was straight forward without taking existing xml definitions into account (actually there was no schema definition available when we started). As of today it would make sense to use element and attribute names similar to the ones used in schema-type-definition. Like for example for String based types.

  4. Most of the above is easier to achieve if we start a new xslt, might be dropping some outdated features and add the new ones. The old xslt could still be supported on a as is base, if we have a unique distinction between the old and the new ones in the source xml.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.