Skip to content
Snippets Groups Projects
Commit 11258afa authored by Anders Montsko Austlid's avatar Anders Montsko Austlid
Browse files

Merge branch 'bugfix/plural-table-names' into 'main'

Bugfix/plural table names

See merge request idatt2106-v23-03/backend!56
parents ea030a3c 31834a04
No related branches found
No related tags found
No related merge requests found
......@@ -9,12 +9,20 @@ import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* Group is an entity class representing a group in the system.
*
* @author Stian Lyng, Anders Austlid
* @version 1.0.1
* @since 20.04.2023
*/
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Entity(name = "groups")
@Data
public class Groups {
public class Group {
@Id
@Column(name = "group_id")
......
......@@ -32,4 +32,7 @@ public class Product{
@Column(name ="category_name")
String category_name;
@Column(name = "image_url")
String image_url;
}
......@@ -20,8 +20,8 @@ import java.util.List;
* It implements the UserDetails interface.
*
* @author Anders and Birk
* @version 2.0.001
* @since 19.04.2023
* @version 2.0.1
* @since 20.04.2023
*
*/
......
......@@ -2,7 +2,7 @@ package ntnu.idatt2016.v233.SmartMat.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import ntnu.idatt2016.v233.SmartMat.entity.Groups;
import ntnu.idatt2016.v233.SmartMat.entity.Group;
/**
* Repository for groups
......@@ -11,6 +11,6 @@ import ntnu.idatt2016.v233.SmartMat.entity.Groups;
* @version 1.0
* @since 19.04.2023
*/
public interface GroupRepository extends JpaRepository<Groups, Long> {
public interface GroupRepository extends JpaRepository<Group, Long> {
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment