Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-494

import java.lang.Override;@Entity public class ProductOrder implements java.io.Serializable {

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • None
    • None
    • None

      When creating entities, I notice that Forge puts the @Entity line on the same physical line as the last import statement:

      import java.lang.Override;@Entity public class ProductOrder implements java.io.Serializable {
      import java.lang.Override;@Entity public class Item implements java.io.Serializable {
      import javax.persistence.TemporalType;@Entity public class Customer implements java.io.Serializable {

      commands are:
      persistence setup --provider HIBERNATE --container JBOSS_AS7
      entity --named Customer --package ~.model
      field string --named firstName
      field string --named lastName
      field temporal --type DATE --named birthDate
      entity --named Item
      field string --named name
      field number --named price --type java.lang.Double
      field int --named stock
      entity --named ProductOrder

            Unassigned Unassigned
            bsutter@redhat.com Burr Sutter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: