Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Entity
- @Table(name = T_RIDER, uniqueConstraints = { @UniqueConstraint(columnNames = {M_RIDER_ACCOUNT, M_RIDER_BANK_CODE}) })
- public class Rider extends PlatformUser implements IRider {
- @Column(name = M_RIDER_EMAIL, unique = true, nullable = false)
- private String email;
- @Column(name = M_RIDER_PASSWORD, columnDefinition = "VARBINARY(40)")
- private byte[] password;
- @Column(name = M_RIDER_ACCOUNT)
- private String accountNo;
- @Column(name = M_RIDER_BANK_CODE)
- private String bankCode;
- @Column(name = M_RIDER_TRIPS)
- @OneToMany(targetEntity = Trip.class)
- @JoinTable(name = I_TRIP)
- private Collection<ITrip> trips;
- @Column(name = M_RIDER_PREFERENCES)
- @OneToOne(targetEntity = Preferences.class, optional = false, cascade = CascadeType.REMOVE)
- @JoinColumn(name = I_PREFERENCES, unique = true)
- private IPreferences preferences;
- ...}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement