comment backend entities and repos
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents an activity log entry in the database.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents a pet adoption record in the database.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents an appointment in the database.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents a shopping cart in the database.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents a single item in a shopping cart.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents a product category in the database.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents a chat conversation between a customer and staff.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents a discount coupon in the database.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents inventory stock for a product.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents a single message in a conversation.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents a password reset token for a user.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents a pet in the database.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents a product in the database.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents the link between a product and its supplier.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents a purchase order placed with a supplier.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents a refund for a sale.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents a single item in a refund.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents a sale transaction in the database.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents a single item in a sale.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents a pet service offered by the store.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents a store location in the database.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import com.petshop.backend.util.PhoneUtils;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents a supplier in the database.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import com.petshop.backend.util.PhoneUtils;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Represents a user account in the database.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.entity;
|
||||
|
||||
import com.petshop.backend.util.PhoneUtils;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Database queries for activity logs.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.repository;
|
||||
|
||||
import com.petshop.backend.entity.ActivityLog;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Database queries for adoptions.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.repository;
|
||||
|
||||
import com.petshop.backend.entity.Adoption;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Database queries for appointments.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.repository;
|
||||
|
||||
import com.petshop.backend.entity.Appointment;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Database queries for cart items.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.repository;
|
||||
|
||||
import com.petshop.backend.entity.CartItem;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Database queries for shopping carts.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.repository;
|
||||
|
||||
import com.petshop.backend.entity.Cart;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Database queries for categories.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.repository;
|
||||
|
||||
import com.petshop.backend.entity.Category;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Database queries for conversations.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.repository;
|
||||
|
||||
import com.petshop.backend.entity.Conversation;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Database queries for coupons.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.repository;
|
||||
|
||||
import com.petshop.backend.entity.Coupon;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Database queries for inventory records.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.repository;
|
||||
|
||||
import com.petshop.backend.entity.Inventory;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Database queries for messages.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.repository;
|
||||
|
||||
import com.petshop.backend.entity.Message;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Database queries for password reset tokens.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.repository;
|
||||
|
||||
import com.petshop.backend.entity.PasswordResetToken;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Database queries for pets.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.repository;
|
||||
|
||||
import com.petshop.backend.entity.Pet;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Database queries for products.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.repository;
|
||||
|
||||
import com.petshop.backend.entity.Product;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Database queries for product-supplier links.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.repository;
|
||||
|
||||
import com.petshop.backend.entity.ProductSupplier;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Database queries for purchase orders.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.repository;
|
||||
|
||||
import com.petshop.backend.entity.PurchaseOrder;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Database queries for refunds.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.repository;
|
||||
|
||||
import com.petshop.backend.entity.Refund;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Database queries for sale items.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.repository;
|
||||
|
||||
import com.petshop.backend.entity.SaleItem;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Database queries for sales.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.repository;
|
||||
|
||||
import com.petshop.backend.entity.Sale;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Database queries for services.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.repository;
|
||||
|
||||
import com.petshop.backend.entity.Service;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Database queries for store locations.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.repository;
|
||||
|
||||
import com.petshop.backend.entity.StoreLocation;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Database queries for suppliers.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.repository;
|
||||
|
||||
import com.petshop.backend.entity.Supplier;
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Database queries for users.
|
||||
*
|
||||
* Author: Harkamal
|
||||
* Date: April 2026
|
||||
*/
|
||||
|
||||
package com.petshop.backend.repository;
|
||||
|
||||
import com.petshop.backend.entity.User;
|
||||
|
||||
Reference in New Issue
Block a user