* <p>
* @author Roland Haeder<roland@mxchange.org>
*/
-@Entity (name = "phone_numbers")
-@Table (name = "phone_numbers")
+@Entity (name = "landline_numbers")
+@Table (name = "landline_numbers")
@NamedQueries (
{
- @NamedQuery (name = "AllLandLineNumbers", query = "SELECT p FROM phone_numbers AS p ORDER BY p.phoneId ASC"),
- @NamedQuery (name = "SearchLandLineId", query = "SELECT p FROM phone_numbers AS p WHERE p.phoneId = :phoneId")
+ @NamedQuery (name = "AllLandLineNumbers", query = "SELECT p FROM landline_numbers AS p ORDER BY p.phoneId ASC"),
+ @NamedQuery (name = "SearchLandLineNumberId", query = "SELECT p FROM landline_numbers AS p WHERE p.phoneId = :landLineNumberId")
}
)
@SuppressWarnings ("PersistenceUnitPresent")
* Area code (example: 2151 for Krefeld)
*/
@Basic (optional = false)
- @Column (name = "phone_area_code", length = 10, nullable = false)
+ @Column (name = "landline_area_code", length = 10, nullable = false)
private Integer phoneAreaCode;
/**
* Connection to table "country_data"
*/
- @JoinColumn (name = "phone_country_id", nullable = false, updatable = false)
+ @JoinColumn (name = "landline_country_id", nullable = false, updatable = false)
@OneToOne (targetEntity = CountryData.class, cascade = CascadeType.REFRESH, optional = false)
private Country phoneCountry;
*/
@Basic (optional = false)
@Temporal (TemporalType.TIMESTAMP)
- @Column (name = "phone_entry_created", nullable = false, updatable = false)
+ @Column (name = "landline_entry_created", nullable = false, updatable = false)
private Calendar phoneEntryCreated;
/**
* Timestamp when this entry has been created
*/
@Temporal (TemporalType.TIMESTAMP)
- @Column (name = "phone_entry_updated", updatable = false)
+ @Column (name = "landline_entry_updated", updatable = false)
private Calendar phoneEntryUpdated;
/**
*/
@Id
@GeneratedValue (strategy = GenerationType.IDENTITY)
- @Column (name = "phone_id", length = 10, nullable = false, updatable = false)
+ @Column (name = "landline_id", length = 10, nullable = false, updatable = false)
private Long phoneId;
/**
* Phone number with out dial prefix
*/
@Basic (optional = false)
- @Column (name = "phone_number", nullable = false)
+ @Column (name = "landline_number", nullable = false)
private Long phoneNumber;
/**