Skip to content

Commit

Permalink
country - zone
Browse files Browse the repository at this point in the history
  • Loading branch information
shopizer-ecommerce committed May 29, 2022
1 parent 98e3832 commit 0004117
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ public interface CountryRepository extends JpaRepository <Country, Integer> {
Country findByIsoCode(String code);


@Query("select c from Country c left join fetch c.descriptions cd where cd.language.id=?1")
@Query("select c from Country c "
+ "left join fetch c.descriptions cd "
+ "left join fetch c.zones cz left join fetch cz.descriptions "
+ "where cd.language.id=?1")
List<Country> listByLanguage(Integer id);

/** get country including zones by language **/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class Product extends Entity implements Serializable {
private boolean productShipeable = false;

private boolean available;
private boolean visible = true;

private int sortOrder;
private String dateAvailable;
Expand Down Expand Up @@ -49,6 +50,12 @@ public String getCreationDate() {
public void setCreationDate(String creationDate) {
this.creationDate = creationDate;
}
public boolean isVisible() {
return visible;
}
public void setVisible(boolean visible) {
this.visible = visible;
}



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class ProductDefinition extends Entity {
private static final long serialVersionUID = 1L;
private boolean visible = true;
private boolean shipeable = true;
private boolean virtual = true;
private boolean virtual = false;
private boolean canBePurchased = true;
private String dateAvailable;
private String identifier;
Expand Down

0 comments on commit 0004117

Please sign in to comment.