Giter Club home page Giter Club logo

petstore's People

Contributors

alejandrodoglioli avatar ascandroli avatar gerardocdc avatar ilopezluna avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

petstore's Issues

Create the initial project using the Amneris's tynamo-archetype.

Create the initial project using the Amneris's tynamo-archetype.
You will need to checkout the project and install the archetype in your local .m2 repository

Then execute:

mvn archetype:generate \
    -DarchetypeArtifactId=tynamo-archetype \
    -DarchetypeGroupId=org.amneris \
    -DarchetypeVersion=3.0.0-SNAPSHOT \
    -DgroupId=org.amneris \
    -DartifactId=petstore \
    -Dpackage=org.amneris.petstore \
    -Dversion=0.1.0-SNAPSHOT

After that, verify it works with: "mvn jetty:run -P commons,dev.local" and then check the code into github :P
Welcome to the Tynamo PetStore!!!

deploy to AWS

Add the beanstalker maven plugin to allow easy deploy to AWS.

Refactor de Entities, follow the naming conventions

Refactor de model Entities.

Java properties should follow Java and Java Beans naming conventions:

JPA Annotations and SQL should follow RoR naming conventions:

Columns

Columns are named where all letters are lowercase and words are separated by underscores, e.g. order_amount, total

Database Table

Table names have all lowercase letters and underscores between words, also all table names need to be plural, e.g. invoice_items, orders

Primary Key

The primary key of a table is assumed to be named id.

Foreign Key

The foreign key is named with the singular version of the target table name with _id appended to it, e.g. order_id in the items table where we have items linked to the orders table.

Many to Many Link Tables

Tables used to join two tables in a many to many relationship is named using the table names they link, with the table names in alphabetical order, for example items_orders.

Automated Record Timestamps

You can get ActiveRecord to automatically update the create and update times of records in a database table. To do this create two specially named columns created_at and updated_at to your table, i.e. t.datetime :created_at and t.datetime :updated_at. If you only want to store the date rather than a date and time, use :created_on and :updated_on.

source: http://itsignals.cascadia.com.au/?p=7

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.