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
package de.uniba.dsg.dsam.backend.beans; | |
import de.uniba.dsg.dsam.backend.entities.BeverageEntity; | |
import de.uniba.dsg.dsam.backend.entities.OrderEntity; | |
import de.uniba.dsg.dsam.backend.entities.OrderQuantity; | |
import de.uniba.dsg.dsam.model.OrderBeverageDTO; | |
import de.uniba.dsg.dsam.persistence.BeverageManagement; | |
import de.uniba.dsg.dsam.persistence.OrderManagement; | |
import javax.ejb.EJB; |
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
package de.uniba.dsg.dsam.model; | |
import java.io.Serializable; | |
import java.util.ArrayList; | |
public class OrderBeverageDTO implements Serializable { | |
public Order order; | |
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
package de.uniba.dsg.dsam.backend.entities; | |
import javax.persistence.*; | |
import java.util.Date; | |
import java.util.List; | |
@Entity | |
@Table(name = "orders") | |
public class OrderEntity { | |
@Id |
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
package de.uniba.dsg.dsam.backend.entities; | |
import javax.persistence.*; | |
@Entity(name = "OrderQuantity") | |
@Table(name = "order_beverage") | |
public class OrderQuantity { | |
@EmbeddedId | |
private OrderBeverageKey id; |
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
package de.uniba.dsg.dsam.backend.entities; | |
import javax.persistence.Column; | |
import javax.persistence.Embeddable; | |
import java.io.Serializable; | |
import java.util.Objects; | |
@Embeddable | |
public class OrderBeverageKey implements Serializable { | |
@Column(name = "order_id") |
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
{ | |
"eslint.enable": true, //Enable eslint, | |
"editor.formatOnSave": true, | |
"eslint.options": { | |
"extensions": [ //List of file extensions to activate eslint | |
".html", | |
".js", | |
".vue", | |
".jsx" | |
] |
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
// https://eslint.org/docs/user-guide/configuring | |
module.exports = { | |
root: true, | |
parser: 'vue-eslint-parser', | |
parserOptions: { | |
parser: 'babel-eslint', | |
ecmaVersion: 2017, | |
sourceType: 'module' | |
}, |
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
yarn add --dev prettier eslint-plugin-prettier eslint-config-prettier eslint eslint-plugin-vue prettier-standard vue-eslint-parser |
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
/Users/rat/.composer/vendor/bin/php-cs-fixer fix /project/path --config=/Users/rat/wprojects/php_cs.dist |
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
Find any file : Command+shift+o | |
Find next occurrence : Ctrl+G | |
Find all occurrence : Ctrl+Command+G | |
Duplicate current line or selected block : Command + G | |
Delete line at caret : Command + delete | |
Reformat code : Alt + Command + L | |
Auto-indent line(s) : Alt + Command + I | |
Expand/collapse code block : Command + NumPad +/- | |
Expand all : Command + Shift + NumPad+ | |
Collapse all : Command + Shift + NumPad- |
NewerOlder