This file contains hidden or 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
id | hours | restarts | minor_repairs | major_repairs | extra_cost | |
---|---|---|---|---|---|---|
1 | 10 | 0 | 0 | 0 | 0 | |
2 | 8 | 1 | 2 | 0 | 100 | |
3 | 15 | 3 | 0 | 1 | 1000 | |
4 | 12 | 3 | 5 | 0 | 800 |
This file contains hidden or 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
id | hours | restarts | minor_repairs | major_repairs | extra_cost | |
---|---|---|---|---|---|---|
1 | 12 | 0 | 0 | 0 | 0 | |
2 | 12 | 2 | 1 | 0 | 100 | |
5 | 12 | 0 | 0 | 0 | 0 |
This file contains hidden or 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
import org.adroitlogic.x.annotation.config.Parameter; | |
import org.adroitlogic.x.api.config.InputType; | |
import org.adroitlogic.x.api.template.ResourceTemplate; | |
import org.adroitlogic.x.api.template.XResourceTemplate; | |
import java.util.UUID; | |
@ResourceTemplate(displayName = "ActiveMQ JMS") | |
public class ActiveMQJmsConfiguration implements XResourceTemplate { |
This file contains hidden or 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
defmodule Test.Repo.Migrations.SampleMigration do | |
use Ecto.Migration | |
def change do | |
create table(:TEST_TENANTS, primary_key: false) do | |
add :ID, :serial, primary_key: true | |
add :NAME, :string | |
end |
This file contains hidden or 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
defmodule Test.Tenant do | |
use Test.Web, :model | |
@primary_key {:ID, :id, autogenerate: true} | |
schema "TEST_TENANTS" do | |
field :NAME, :string | |
end | |
end |
This file contains hidden or 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
defmodule Test.User do | |
use Test.Web, :model | |
@primary_key {:ID, :id, autogenerate: true} | |
schema "TEST_USERS" do | |
field :NAME, :string | |
belongs_to :TENANT, Test.Tenant, foreign_key: :TENANT_ID, references: :ID | |
many_to_many :GROUPS, Test.Group, join_through: "TEST_GROUPS_USERS", join_keys: [GROUP_ID: :ID, USER_ID: :ID] |
This file contains hidden or 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
defmodule Test.Permission do | |
use Test.Web, :model | |
@primary_key {:ID, :id, autogenerate: true} | |
schema "TEST_PERMISSIONS" do | |
field :NAME, :string | |
belongs_to :GROUP, Test.Grup, foreign_key: :GROUP_ID, references: :ID | |
end |
This file contains hidden or 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
defmodule Test.Group do | |
use Test.Web, :model | |
@primary_key {:ID, :id, autogenerate: true} | |
schema "TEST_GROUPS" do | |
field :NAME, :string | |
belongs_to :TENANT, Test.Tenant, foreign_key: :TENANT_ID, references: :ID | |
has_many :PERMISSIONS, Test.Permission, foreign_key: :GROUP_ID, references: :ID |
This file contains hidden or 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
from user in Test.User, | |
join: group in assoc(u, :GROUPS), | |
where: user.'ID' == 6, | |
select: group |
This file contains hidden or 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
public class TransactionInformation { | |
public static ThreadLocal<TransactionStatus> txnStatus = new ThreadLocal(); | |
} |