-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…nt-entity 악기 관련 entity 구현
- Loading branch information
Showing
29 changed files
with
894 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package com.ajou.hertz.common.entity; | ||
|
||
import java.util.Objects; | ||
|
||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Embeddable; | ||
import lombok.AccessLevel; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@AllArgsConstructor(access = AccessLevel.PRIVATE) | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
@Getter | ||
@Embeddable | ||
public class Address { | ||
|
||
@Column(nullable = false) | ||
private String sido; | ||
|
||
@Column(nullable = false) | ||
private String sgg; | ||
|
||
@Column(nullable = false) | ||
private String emd; | ||
|
||
@Override | ||
public boolean equals(Object obj) { | ||
if (this == obj) { | ||
return true; | ||
} | ||
if (!(obj instanceof Address address)) { | ||
return false; | ||
} | ||
return Objects.equals(getSido(), address.getSido()) | ||
&& Objects.equals(getSgg(), address.getSgg()) | ||
&& Objects.equals(getEmd(), address.getEmd()); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(getSido(), getSgg(), getEmd()); | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/main/java/com/ajou/hertz/domain/instrument/constant/AcousticAndClassGuitarBrand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.ajou.hertz.domain.instrument.constant; | ||
|
||
import static com.ajou.hertz.domain.instrument.constant.ProductOrigin.*; | ||
|
||
import lombok.AllArgsConstructor; | ||
|
||
@AllArgsConstructor | ||
public enum AcousticAndClassGuitarBrand { | ||
|
||
PRAYTON(DOMESTIC), | ||
CRAFTER(DOMESTIC), | ||
GOPHERWOOD(DOMESTIC), | ||
HEX(DOMESTIC), | ||
BENTIVOGLIO(DOMESTIC), | ||
PARKWOOD(DOMESTIC), | ||
ORANGEWOOD(DOMESTIC), | ||
CORT(DOMESTIC), | ||
MARTIN(FOREIGN), | ||
TAYLOR(FOREIGN), | ||
GIBSON(FOREIGN), | ||
SEAGULL(FOREIGN), | ||
EASTMAN(FOREIGN), | ||
SIGMA(FOREIGN), | ||
YAMAHA(FOREIGN), | ||
LAVA(FOREIGN), | ||
ETC(null); | ||
|
||
private final ProductOrigin origin; | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/com/ajou/hertz/domain/instrument/constant/AcousticAndClassGuitarModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.ajou.hertz.domain.instrument.constant; | ||
|
||
public enum AcousticAndClassGuitarModel { | ||
|
||
DREADNOUGHT, | ||
CUTAWAY, | ||
JUMBO_BODY, | ||
SLIM_BODY, | ||
PARLOR_BODY, | ||
OM_BODY | ||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/com/ajou/hertz/domain/instrument/constant/AcousticAndClassGuitarPickUp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.ajou.hertz.domain.instrument.constant; | ||
|
||
import lombok.AllArgsConstructor; | ||
|
||
@AllArgsConstructor | ||
public enum AcousticAndClassGuitarPickUp { | ||
|
||
VIBRATION_SENSING("진동감지형"), | ||
MAGNETIC("마그네틱"), | ||
MICROPHONE("마이크"); | ||
|
||
private final String description; | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/com/ajou/hertz/domain/instrument/constant/AcousticAndClassGuitarWood.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.ajou.hertz.domain.instrument.constant; | ||
|
||
public enum AcousticAndClassGuitarWood { | ||
|
||
PLYWOOD, | ||
SOLID_WOOD, | ||
PLYWOOD_AND_SOLID_WOOD | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/ajou/hertz/domain/instrument/constant/AmplifierBrand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.ajou.hertz.domain.instrument.constant; | ||
|
||
public enum AmplifierBrand { | ||
|
||
FENDER, | ||
MARSHALL, | ||
VOX, | ||
ORANGE, | ||
MESA_BOOGIE, | ||
PEAVEY, | ||
EVH, | ||
BOGNER, | ||
BLACKSTAR, | ||
YAMAHA, | ||
ETC | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/ajou/hertz/domain/instrument/constant/AmplifierType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.ajou.hertz.domain.instrument.constant; | ||
|
||
public enum AmplifierType { | ||
|
||
GUITAR, | ||
BASS | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/com/ajou/hertz/domain/instrument/constant/AmplifierUsage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.ajou.hertz.domain.instrument.constant; | ||
|
||
import lombok.AllArgsConstructor; | ||
|
||
@AllArgsConstructor | ||
public enum AmplifierUsage { | ||
|
||
HOME("가정용"), | ||
PERFORMANCE("공연용"); | ||
|
||
private final String description; | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/com/ajou/hertz/domain/instrument/constant/AudioEquipmentType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.ajou.hertz.domain.instrument.constant; | ||
|
||
public enum AudioEquipmentType { | ||
|
||
AUDIO_EQUIPMENT, | ||
ACCESSORY, | ||
ETC | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/com/ajou/hertz/domain/instrument/constant/BassGuitarBrand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.ajou.hertz.domain.instrument.constant; | ||
|
||
public enum BassGuitarBrand { | ||
|
||
FENDER, | ||
IBANEZ, | ||
SPECTOR, | ||
MUSIC_MAN, | ||
SCHETOR, | ||
ESP, | ||
WARWICK, | ||
DINGWALL, | ||
YAMAHA, | ||
NA, | ||
SADOWSKY, | ||
SANDBERG, | ||
SQUIER, | ||
LAKLAND, | ||
SIRE, | ||
ETC | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/com/ajou/hertz/domain/instrument/constant/BassGuitarPickUp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.ajou.hertz.domain.instrument.constant; | ||
|
||
public enum BassGuitarPickUp { | ||
|
||
JAZZ, | ||
PRECISION, | ||
PJ, | ||
HUMBUCKER, | ||
ETC | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/com/ajou/hertz/domain/instrument/constant/BassGuitarPreAmplifier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.ajou.hertz.domain.instrument.constant; | ||
|
||
public enum BassGuitarPreAmplifier { | ||
|
||
ACTIVE, | ||
PASSIVE, | ||
SWITCHABLE | ||
} |
38 changes: 38 additions & 0 deletions
38
src/main/java/com/ajou/hertz/domain/instrument/constant/EffectorFeature.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.ajou.hertz.domain.instrument.constant; | ||
|
||
import static com.ajou.hertz.domain.instrument.constant.EffectorType.*; | ||
|
||
import lombok.AllArgsConstructor; | ||
|
||
@AllArgsConstructor | ||
public enum EffectorFeature { | ||
|
||
GUITAR_WAH(GUITAR, "와우"), | ||
GUITAR_EQ(GUITAR, "Eq"), | ||
GUITAR_VOLUME(GUITAR, "볼륨"), | ||
GUITAR_COMPRESSOR(GUITAR, "컴프레서"), | ||
GUITAR_OVER(GUITAR, "오버"), | ||
GUITAR_DISTORTION(GUITAR, "디스토션"), | ||
GUITAR_BOOST(GUITAR, "부스트"), | ||
GUITAR_SPATIOTEMPORAL_EFFECT(GUITAR, "공간계"), | ||
GUITAR_MODULATION(GUITAR, "모듈레이션"), | ||
GUITAR_AMPLIFIER_SIMULATOR(GUITAR, "앰프시뮬"), | ||
GUITAR_MULTI(GUITAR, "멀티"), | ||
GUITAR_BOARD_PARTS(GUITAR, "보드용부품"), | ||
|
||
BASS_COMPRESSOR(BASS, "컴프레서"), | ||
BASS_LIMITER(BASS, "리미터"), | ||
BASS_DRIVE(BASS, "드라이브"), | ||
|
||
MULTI_MULTI(MULTI, "멀티"), | ||
|
||
PEDAL_BOARD_BOARD(PEDAL_BOARD, "보드"), | ||
PEDAL_BOARD_POWER_SUPPLY(PEDAL_BOARD, "파워서플라이"), | ||
PEDAL_BOARD_BUFFER(PEDAL_BOARD, "버퍼"), | ||
PEDAL_BOARD_PARALLEL_MIXER(PEDAL_BOARD, "병렬 믹서"), | ||
|
||
ETC(null, "그 외"); | ||
|
||
private final EffectorType effectorType; | ||
private final String description; | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/com/ajou/hertz/domain/instrument/constant/EffectorType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.ajou.hertz.domain.instrument.constant; | ||
|
||
public enum EffectorType { | ||
GUITAR, | ||
BASS, | ||
MULTI, | ||
PEDAL_BOARD | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/com/ajou/hertz/domain/instrument/constant/ElectricGuitarBrand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.ajou.hertz.domain.instrument.constant; | ||
|
||
public enum ElectricGuitarBrand { | ||
|
||
FENDER_USA, | ||
FENDER_JAPAN, | ||
FENDER_MEXICO, | ||
GIBSON, | ||
IBANEZ, | ||
PRS, | ||
SCHECTER, | ||
EPIPHONE, | ||
ESP_LTD, | ||
SQUIER, | ||
JACKSON, | ||
ESP, | ||
CUSTOM, | ||
HIGH_END, | ||
ETC | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/com/ajou/hertz/domain/instrument/constant/ElectricGuitarModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.ajou.hertz.domain.instrument.constant; | ||
|
||
public enum ElectricGuitarModel { | ||
|
||
TELECASTER, | ||
STRATOCASTER, | ||
LESS, | ||
SUPERSTRAT, | ||
SEMI_HOLLOW, | ||
HEAVY_SHAPE, | ||
JAZZMASTER_JAGUAR, | ||
PRS, | ||
ETC | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/com/ajou/hertz/domain/instrument/constant/GuitarColor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.ajou.hertz.domain.instrument.constant; | ||
|
||
public enum GuitarColor { | ||
|
||
RED, | ||
ORANGE, | ||
YELLOW, | ||
GREEN, | ||
BLUE, | ||
NAVY, | ||
VIOLET, | ||
WHITE, | ||
BLACK, | ||
ETC | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/com/ajou/hertz/domain/instrument/constant/InstrumentCategory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.ajou.hertz.domain.instrument.constant; | ||
|
||
public enum InstrumentCategory { | ||
|
||
ELECTRIC_GUITAR, | ||
BASS_GUITAR, | ||
ACOUSTIC_AND_CLASSIC_GUITAR, | ||
AMPLIFIER, | ||
EFFECTOR, | ||
AUDIO_EQUIPMENT | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/com/ajou/hertz/domain/instrument/constant/InstrumentProgressStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.ajou.hertz.domain.instrument.constant; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@AllArgsConstructor | ||
@Getter | ||
public enum InstrumentProgressStatus { | ||
|
||
SELLING("판매중"), | ||
RESERVED("예약중"), | ||
SOLD_OUT("판매 완료"); | ||
|
||
private final String description; | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/com/ajou/hertz/domain/instrument/constant/ProductOrigin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.ajou.hertz.domain.instrument.constant; | ||
|
||
import lombok.AllArgsConstructor; | ||
|
||
@AllArgsConstructor | ||
public enum ProductOrigin { | ||
|
||
DOMESTIC("국내"), | ||
FOREIGN("국외"); | ||
|
||
private final String description; | ||
} |
Oops, something went wrong.