-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgradlew
28 lines (22 loc) · 5.63 KB
/
gradlew
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package br.com.beautystyle.model.entities;
import static androidx.room.ForeignKey.CASCADE;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.ForeignKey;
@Entity(primaryKeys = {"eventId","jobId"},
foreignKeys = {
@ForeignKey(onDelete = CASCADE, entity = Event.class,
parentColumns = "eventId", childColumns = "eventId"),
@ForeignKey(onDelete = CASCADE,entity = Job.class,
parentColumns = "jobId",childColumns = "jobId")})
public class EventJobCroosRef {
@ColumnInfo(index = true)
public long eventId;
@ColumnInfo(index = true)
public long jobId;
public EventJobCroosRef(long eventId, long jobId) {
this.eventId = eventId;
this.jobId = jobId;
}
}