-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change photo upload location from DB to FileSystem
- Loading branch information
Showing
42 changed files
with
573 additions
and
498 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
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
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
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
21 changes: 0 additions & 21 deletions
21
backend/src/main/java/com/github/mdeluise/plantit/image/AbstractBotanicalInfoImage.java
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
backend/src/main/java/com/github/mdeluise/plantit/image/BotanicalInfoImage.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,25 @@ | ||
package com.github.mdeluise.plantit.image; | ||
|
||
import com.github.mdeluise.plantit.botanicalinfo.BotanicalInfo; | ||
import jakarta.persistence.DiscriminatorValue; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.JoinColumn; | ||
import jakarta.persistence.OneToOne; | ||
|
||
@Entity | ||
@DiscriminatorValue("1") | ||
public class BotanicalInfoImage extends EntityImageImpl { | ||
@OneToOne | ||
@JoinColumn(name = "botanical_info_entity_id") | ||
private BotanicalInfo target; | ||
|
||
|
||
public BotanicalInfo getTarget() { | ||
return target; | ||
} | ||
|
||
|
||
public void setTarget(BotanicalInfo target) { | ||
this.target = target; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
backend/src/main/java/com/github/mdeluise/plantit/image/EntityImage.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.github.mdeluise.plantit.image; | ||
|
||
public interface EntityImage { | ||
Long getId(); | ||
|
||
void setUrl(String url); | ||
|
||
void setPath(String path); | ||
|
||
String getPath(); | ||
|
||
String getUrl(); | ||
} |
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
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
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
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
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
Oops, something went wrong.