List of usage examples for javax.persistence GenerationType AUTO
GenerationType AUTO
To view the source code for javax.persistence GenerationType AUTO.
Click Source Link
From source file:net.groupbuy.entity.BaseEntity.java
/** * ?ID//from w w w .ja v a 2 s . c o m * * @return ID */ @JsonProperty @DocumentId @Id // MySQL/SQLServer: @GeneratedValue(strategy = GenerationType.AUTO) // Oracle: @GeneratedValue(strategy = GenerationType.AUTO, generator = "sequenceGenerator") @GeneratedValue(strategy = GenerationType.AUTO, generator = "sequenceGenerator") public Long getId() { return id; }
From source file:ca.mcgill.cs.swevo.qualyzer.model.AnnotatedDocument.java
/** * @return */ @Id @GeneratedValue(strategy = GenerationType.AUTO) public Long getPersistenceId() { return fPersistenceId; }
From source file:org.nuxeo.ecm.activity.ActivityImpl.java
@Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(nullable = false, columnDefinition = "integer") @Override public Long getId() { return id; }
From source file:com.impetus.ankush.common.domain.Service.java
/** * @return the id */ @Id @GeneratedValue(strategy = GenerationType.AUTO) @JsonIgnore public Long getId() { return id; }
From source file:de.pro.dbw.file.reflection.api.ReflectionCommentModel.java
@Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = REFLECTION_COMMENT_MODEL__COLUMN_NAME__ID) public long getId() { if (idProperty == null) { return _id; } else {//w w w . j av a 2 s.c om return idProperty.getValue(); } }
From source file:no.abmu.questionnarie.domain.MainReportData.java
@Id @GeneratedValue(strategy = GenerationType.AUTO) public Long getId() { return super.getId(); }
From source file:com.yuga.ygplatform.modules.sys.entity.User.java
@Id @GeneratedValue(strategy = GenerationType.AUTO) // @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seq_sys_user") // @SequenceGenerator(name = "seq_sys_user", sequenceName = "seq_sys_user") public Long getId() { return 1L;//from ww w .j a v a 2s .co m }
From source file:org.nuxeo.ecm.platform.audit.impl.ExtendedInfoImpl.java
@Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "LOG_EXTINFO_ID") public Long getId() { return id; }
From source file:ru.runa.wfe.execution.Swimlane.java
@Id @GeneratedValue(strategy = GenerationType.AUTO, generator = "sequence") @SequenceGenerator(name = "sequence", sequenceName = "SEQ_BPM_SWIMLANE", allocationSize = 1) @Column(name = "ID") public Long getId() { return id;// ww w . j a v a 2 s . co m }
From source file:com.github.naoghuman.cm.model.category.CategoryModel.java
@Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = COLUMN_NAME__ID)/*from ww w . ja v a2 s.c om*/ public long getId() { if (this.idProperty == null) { return _id; } else { return idProperty.get(); } }