tim-connector: Add protected default constructor for Hibernate to new entities

Include proper comments warning about not using it directly.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
This commit is contained in:
Manuel Rego Casasnovas 2013-02-11 13:47:23 +01:00
parent 5ff02eaae6
commit dc15df3d2e
3 changed files with 15 additions and 1 deletions

View file

@ -37,6 +37,12 @@ public class AppProperties extends BaseEntity {
private String propertyName;
private String propertyValue;
/**
* Constructor for Hibernate. Do not use!
*/
protected AppProperties() {
}
public String getMajorId() {
return majorId;
}

View file

@ -32,6 +32,12 @@ public class JobSchedulerConfiguration extends BaseEntity {
return create(new JobSchedulerConfiguration());
}
/**
* Constructor for Hibernate. Do not use!
*/
protected JobSchedulerConfiguration() {
}
private String jobGroup;
private String jobName;
private String triggerGroup;

View file

@ -41,8 +41,10 @@ public class OrderSyncInfo extends BaseEntity {
return create(new OrderSyncInfo(order));
}
/**
* Constructor for Hibernate. Do not use!
*/
protected OrderSyncInfo() {
}
private OrderSyncInfo(Order order) {