Skip to content

Commit

Permalink
form edit
Browse files Browse the repository at this point in the history
  • Loading branch information
tifoha committed Jan 29, 2016
1 parent d782116 commit 973bb97
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ivis-core/src/main/java/com/imcode/entities/embed/Email.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.imcode.entities.embed;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.imcode.entities.enums.CommunicationTypeEnum;
import com.imcode.entities.superclasses.ContactInformation;

Expand Down Expand Up @@ -44,21 +45,25 @@ protected Email(CommunicationTypeEnum type, String value) {
// this.address = address;
// this.communicationType = CommunicationTypeEnum.MOBILE;
// }
@JsonIgnore
@Deprecated
public String getAddress() {
return value;
}

@JsonIgnore
@Deprecated
public void setAddress(String address) {
this.value = address;
}

@JsonIgnore
@Deprecated
public CommunicationTypeEnum getCommunicationType() {
return type;
}

@JsonIgnore
@Deprecated
public void setCommunicationType(CommunicationTypeEnum communicationType) {
this.type = communicationType;
Expand Down
5 changes: 5 additions & 0 deletions ivis-core/src/main/java/com/imcode/entities/embed/Phone.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.imcode.entities.embed;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.imcode.entities.enums.CommunicationTypeEnum;
import com.imcode.entities.superclasses.ContactInformation;

Expand Down Expand Up @@ -36,21 +37,25 @@ protected Phone(CommunicationTypeEnum type, String value) {
super(type, value);
}

@JsonIgnore
@Deprecated
public String getNumber() {
return value;
}

@JsonIgnore
@Deprecated
public void setNumber(String value) {
this.value = value;
}

@JsonIgnore
@Deprecated
public CommunicationTypeEnum getCommunicationType() {
return type;
}

@JsonIgnore
@Deprecated
public void setCommunicationType(CommunicationTypeEnum type) {
this.type = type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ public static void main(String[] args) {
// serviceFactory.checkEntityClassList(serviceFactory.entityClassList);
// GenericService service = serviceFactory.getService(RoleService.class);
UserService service = serviceFactory.getService(UserService.class);
List<User> entityList = service.findAll();
User entityList = service.getCurrentUser();
//// SchoolClass schoolClass = (SchoolClass) service1.find(1L);
// Pupil entity = (Pupil) service.find(1);

Expand Down

0 comments on commit 973bb97

Please sign in to comment.