-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AMQ-Passwörter in Properties verschoben; Wiki-Controller mit Übersich…
…t und Artikelanzeige über Slug, Tags in Artikel
- Loading branch information
Showing
35 changed files
with
680 additions
and
19 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
package de.holarse.backend.db; | ||
|
||
import de.holarse.backend.types.NodeType; | ||
import io.hypersistence.utils.hibernate.type.basic.PostgreSQLEnumType; | ||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.EnumType; | ||
import jakarta.persistence.Enumerated; | ||
import jakarta.persistence.JoinColumn; | ||
import jakarta.persistence.ManyToOne; | ||
import jakarta.persistence.Table; | ||
import org.hibernate.annotations.Type; | ||
|
||
@Table(name = "node_slugs") | ||
@Entity | ||
public class NodeSlug extends TimestampedBase { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
private int nodeId; | ||
|
||
@Column(length = 255) | ||
private String name; | ||
|
||
@Enumerated(EnumType.STRING) | ||
@Type(PostgreSQLEnumType.class) | ||
@Column(columnDefinition = "node_type", name = "slug_context") | ||
private NodeType slugContext; | ||
|
||
@ManyToOne | ||
@JoinColumn(name="update_userid", nullable=false, referencedColumnName = "id") | ||
private User user; | ||
|
||
public int getNodeId() { | ||
return nodeId; | ||
} | ||
|
||
public void setNodeId(int nodeId) { | ||
this.nodeId = nodeId; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public NodeType getSlugContext() { | ||
return slugContext; | ||
} | ||
|
||
public void setSlugContext(NodeType slugContext) { | ||
this.slugContext = slugContext; | ||
} | ||
|
||
public User getUser() { | ||
return user; | ||
} | ||
|
||
public void setUser(User user) { | ||
this.user = user; | ||
} | ||
|
||
} |
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,35 @@ | ||
package de.holarse.backend.db; | ||
|
||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.Table; | ||
|
||
@Entity | ||
@Table(name = "node_tags") | ||
public class NodeTag extends TimestampedBase { | ||
|
||
@Column(name = "tagid") | ||
private int tagId; | ||
|
||
@Column(name = "nodeid") | ||
private int nodeId; | ||
|
||
public int getTagId() { | ||
return tagId; | ||
} | ||
|
||
public void setTagId(int tagId) { | ||
this.tagId = tagId; | ||
} | ||
|
||
public int getNodeId() { | ||
return nodeId; | ||
} | ||
|
||
public void setNodeId(int nodeId) { | ||
this.nodeId = nodeId; | ||
} | ||
|
||
|
||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
package de.holarse.backend.db; | ||
|
||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.FetchType; | ||
import jakarta.persistence.JoinColumn; | ||
import jakarta.persistence.ManyToOne; | ||
import jakarta.persistence.Table; | ||
|
||
@Entity | ||
@Table(name = "tags") | ||
public class Tag extends TimestampedBase { | ||
|
||
@Column(length = 255) | ||
private String name; | ||
|
||
@Column(length = 12, name = "name_lang") | ||
private String nameLang; | ||
|
||
private int weight; | ||
|
||
@ManyToOne(fetch = FetchType.LAZY) | ||
@JoinColumn(name="aliasid", nullable=true, referencedColumnName = "id") | ||
private Tag alias; | ||
|
||
@ManyToOne | ||
@JoinColumn(name="taggroupid", nullable=false, referencedColumnName = "id") | ||
private TagGroup tagGroup; | ||
|
||
@ManyToOne(fetch = FetchType.LAZY) | ||
@JoinColumn(name="update_userid", nullable=true, referencedColumnName = "id") | ||
private User user; | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getNameLang() { | ||
return nameLang; | ||
} | ||
|
||
public void setNameLang(String nameLang) { | ||
this.nameLang = nameLang; | ||
} | ||
|
||
public int getWeight() { | ||
return weight; | ||
} | ||
|
||
public void setWeight(int weight) { | ||
this.weight = weight; | ||
} | ||
|
||
public Tag getAlias() { | ||
return alias; | ||
} | ||
|
||
public void setAlias(Tag alias) { | ||
this.alias = alias; | ||
} | ||
|
||
public TagGroup getTagGroup() { | ||
return tagGroup; | ||
} | ||
|
||
public void setTagGroup(TagGroup tagGroup) { | ||
this.tagGroup = tagGroup; | ||
} | ||
|
||
public User getUser() { | ||
return user; | ||
} | ||
|
||
public void setUser(User user) { | ||
this.user = user; | ||
} | ||
|
||
} |
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,47 @@ | ||
package de.holarse.backend.db; | ||
|
||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.FetchType; | ||
import jakarta.persistence.JoinColumn; | ||
import jakarta.persistence.ManyToOne; | ||
import jakarta.persistence.Table; | ||
|
||
@Table(name = "taggroups") | ||
@Entity | ||
public class TagGroup extends TimestampedBase { | ||
|
||
@Column | ||
private String name; | ||
@Column | ||
private int weight; | ||
|
||
@ManyToOne(fetch = FetchType.LAZY) | ||
@JoinColumn(name="update_userid", nullable=false, referencedColumnName = "id") | ||
private User user; | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public int getWeight() { | ||
return weight; | ||
} | ||
|
||
public void setWeight(int weight) { | ||
this.weight = weight; | ||
} | ||
|
||
public User getUser() { | ||
return user; | ||
} | ||
|
||
public void setUser(User user) { | ||
this.user = user; | ||
} | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/de/holarse/backend/db/datasets/CurrentArticle.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 de.holarse.backend.db.datasets; | ||
|
||
public interface CurrentArticle { | ||
|
||
int getNodeId(); | ||
int getRevision(); | ||
String getTitle1(); | ||
String getSlug(); | ||
|
||
} |
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.