Skip to content

Commit

Permalink
Fixed issue in notification settings serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalidze committed Mar 16, 2015
1 parent 16181f3 commit ddf5cdd
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
package org.traccar.web.shared.model;

import com.google.gwt.user.client.rpc.GwtTransient;

import javax.persistence.*;
import java.io.Serializable;

Expand Down Expand Up @@ -49,6 +51,7 @@ public NotificationSettings() {
@Column(name = "id", nullable = false, updatable = false, unique = true)
private long id;

@GwtTransient
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(foreignKey = @ForeignKey(name = "nsettings_fkey_user_id"))
private User user;
Expand Down

0 comments on commit ddf5cdd

Please sign in to comment.