119 lines
3.7 KiB
HTML
119 lines
3.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>DAO & RowMapper Generator</title>
|
|
<link rel="stylesheet" href="./css/bootstrap.min.css">
|
|
<style>
|
|
body {
|
|
min-height: 100vh;
|
|
}
|
|
[data-attribute-name] {
|
|
background: transparent;
|
|
padding: 0.25rem 0;
|
|
margin-bottom: 0.25rem;
|
|
transition: background 0.15s ease-in-out;
|
|
}
|
|
[data-attribute-name]:hover {
|
|
background: rgba(0, 0, 0, 0.1);
|
|
}
|
|
[data-scroll-bottom] {
|
|
font-size: 4em;
|
|
display: block;
|
|
width: 60px;
|
|
height: 60px;
|
|
transform: rotate(90deg);
|
|
color: #fff;
|
|
background: #333;
|
|
border-radius: 5px;
|
|
line-height: 45px;
|
|
text-align: center;
|
|
position: fixed;
|
|
bottom: 30px;
|
|
right: 30px;
|
|
}
|
|
[data-scroll-bottom]:hover {
|
|
color: #fff;
|
|
text-decoration: none;
|
|
background: #222;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-sm my-4">
|
|
<ul class="nav nav-pills">
|
|
<li class="nav-item"><a href="index.html" class="nav-link">Schema Info</a></li>
|
|
<li class="nav-item"><a href="generate-daos-row-mapper.html" class="nav-link active">DAO Generator</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm">
|
|
<h2 class="mb-4">DAO & RowMapper Generator</h2>
|
|
</div>
|
|
</div>
|
|
<form class="form mb-4" data-schema-form>
|
|
<h5>Step 1: Enter Schema Credentials & Classpath</h5>
|
|
<div class="form-row">
|
|
<div class="form-group col-sm">
|
|
<label>DB Name</label>
|
|
<input type="text" class="form-control" value="inventory" data-db-name required>
|
|
</div>
|
|
<div class="form-group col-sm">
|
|
<label>Username</label>
|
|
<input type="text" class="form-control" value="utopia" data-db-user required>
|
|
</div>
|
|
<div class="form-group col-sm">
|
|
<label>Password</label>
|
|
<input type="password" class="form-control" value="Utopia01" data-db-password required>
|
|
</div>
|
|
<div class="form-group col-sm">
|
|
<label>Host</label>
|
|
<input type="text" class="form-control" value="192.168.90.97" data-db-host required>
|
|
</div>
|
|
<div class="form-group col-sm">
|
|
<label>Port</label>
|
|
<input type="text" class="form-control" value="3306" data-db-port required>
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-sm">
|
|
<label>Classpath</label>
|
|
<input type="text" class="form-control" placeholder="D:\Projects\utopia-industries-bare\target\classes\com\utopiaindustries\uind\model\inventory" data-class-path title="Replace it as per your config">
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-sm">
|
|
<label>Base Package</label>
|
|
<input type="text" class="form-control" value="com.utopiaindustries.uind" data-base-package>
|
|
</div>
|
|
</div>
|
|
<button class="btn btn-primary" type="submit">Map Tables to POJOs</button>
|
|
</form>
|
|
<form class="form mb-5" data-generate-dao-form style="display: none;">
|
|
<h5>Step 2: Select Table-POJO Mapping</h5>
|
|
<div class="form-row">
|
|
<div class="col-sm form-group">
|
|
<label>DataSource Type</label>
|
|
<input type="text" class="form-control" value="NamedParameterJdbcTemplate" data-source-type required>
|
|
</div>
|
|
<div class="col-sm form-group">
|
|
<label>DataSource Name</label>
|
|
<input type="text" class="form-control" value="namedParameterJdbcTemplate" data-source-name required>
|
|
</div>
|
|
</div>
|
|
<div data-mapping-area></div>
|
|
<button class="btn btn-primary" type="submit">Generate DAOs and RowMappers</button>
|
|
</form>
|
|
</div>
|
|
|
|
<a href="#" class="scroll-to-bottom" data-scroll-bottom>›</a>
|
|
|
|
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
|
|
<!-- <script src="https://cdn.jsdelivr.net/npm/vue"></script> -->
|
|
<script src="./js/main.js"></script>
|
|
</body>
|
|
</html> |