Commit f337d2c1 authored by Roberto Loayza's avatar Roberto Loayza

Artefactos Goal y Action.

parent 9373fdd5
package com.bytesw.bytebot.etl.beans;
import com.google.gson.annotations.Expose;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
public class ActionBean {
@Expose
private Long id;
@Expose
private String ident;
}
package com.bytesw.bytebot.etl.beans;
import com.google.gson.annotations.Expose;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
public class GoalBean {
@Expose
private Long id;
@Expose
private String ident;
@Expose
private Long agenId;
}
\ No newline at end of file
...@@ -25,8 +25,4 @@ public class Action { ...@@ -25,8 +25,4 @@ public class Action {
@Column(name = "action_ident") @Column(name = "action_ident")
private String identifier; private String identifier;
@ManyToOne(optional = false)
@JoinColumn(name = "goal_id", referencedColumnName = "GOAL_ID")
private Goal goal;
} }
package com.bytesw.bytebot.repository;
import com.bytesw.bytebot.etl.model.Action;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;
public interface ActionRepository extends CrudRepository<Action, Long>, JpaSpecificationExecutor<Action> {
}
package com.bytesw.bytebot.repository;
import com.bytesw.bytebot.etl.model.Goal;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;
public interface GoalRepository extends CrudRepository<Goal, Long>, JpaSpecificationExecutor<Goal> {
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment