Skip to content

Commit

Permalink
JBEAP-6352 Remove usage of hibernate specific annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
ctomc committed Oct 7, 2016
1 parent b839619 commit ec126eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bean-validation-custom-constraint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ System requirements

The application this project produces is designed to be run on Red Hat JBoss Enterprise Application Platform 7 or later.

All you need to build this project is Java 8.0 (Java SDK 1.8) or later and Maven 3.1.1 or later. See [Configure Maven for JBoss EAP 7](https://github.com/jboss-developer/jboss-developer-shared-resources/blob/master/guides/CONFIGURE_MAVEN_JBOSS_EAP7.md#configure-maven-to-build-and-deploy-the-quickstarts) to make sure you are configured correctly for testing the quickstarts.
All you need to build this project is Java 8.0 (Java SDK 1.8) or later and Maven 3.2.5 or later. See [Configure Maven for JBoss EAP 7](https://github.com/jboss-developer/jboss-developer-shared-resources/blob/master/guides/CONFIGURE_MAVEN_JBOSS_EAP7.md#configure-maven-to-build-and-deploy-the-quickstarts) to make sure you are configured correctly for testing the quickstarts.


Use of EAP7_HOME
Expand Down
4 changes: 0 additions & 4 deletions bean-validation-custom-constraint/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,6 @@
</dependency>

<!-- Now we declare any tools needed -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
</dependency>

<!-- Needed for running tests (you may also use TestNG) -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,15 @@
package org.jboss.as.quickstarts.bean_validation_custom_constraint;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

@Entity
@Table(name = "person_address")
public class PersonAddress implements Serializable {
Expand All @@ -37,8 +34,7 @@ public class PersonAddress implements Serializable {

@Id
@Column(name = "person_id", unique = true, nullable = false)
@GeneratedValue(generator = "generator")
@GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "person"))
@GeneratedValue(strategy = GenerationType.SEQUENCE)
private Long personId;

private String streetAddress;
Expand Down

0 comments on commit ec126eb

Please sign in to comment.