skip to Main Content

Mysql – Spring JPA – Query Methods

I have this table: @Entity @Table(name = "t_tropical", uniqueConstraints = @UniqueConstraint(columnNames = { "name", "sign", "isRetro", "house", "lang"})) @Getter @Setter @AllArgsConstructor @NoArgsConstructor @Builder @ToString public class Tropical { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String name; private String…

VIEW QUESTION

make a query with conditions in laravel

i wanna get the reservations that their status aren't canceled or if status is canceled it check they have unread messages or not Can you help me? class Reservation extends Model { public function unreadMessages() { return $this->hasMany(Message::class, 'reservation_id', 'id')…

VIEW QUESTION
Back To Top
Search