Skip to content

Commit

Permalink
creation of ApartmentDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaums02 committed Oct 9, 2024
1 parent 6363833 commit 9779a50
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package cat.udl.eps.softarch.demo.domain;

import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.Data;

@Entity
@Data

public class ApartmentDetails extends UriEntity<Long>{
@Id
private Long id;
private float square;
private int numBathrooms;
private int numBedrooms;
private boolean hasAC;
private boolean hasElevator;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package cat.udl.eps.softarch.demo.repository;

import cat.udl.eps.softarch.demo.domain.ApartmentDetails;
import cat.udl.eps.softarch.demo.domain.Room;
import org.springframework.data.repository.CrudRepository;

public interface ApartmentDetailsRepository extends CrudRepository<ApartmentDetails, Long> {

}

0 comments on commit 9779a50

Please sign in to comment.