「1.0.0-SNAPSHOT」の場合は、「1.0.0」になる。
mvn org.codehaus.mojo:versions-maven-plugin:2.5:set -DremoveSnapshot=true
mvn org.codehaus.mojo:versions-maven-plugin:2.5:set -DremoveSnapshot=true
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<filesets>
<fileset>
<directory>temp</directory>
<includes>
<include>*.log</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
compile 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.9.4'@JacksonXmlRootElement(localName = "root")
public class Simple {
private Child child;
public Child getChild() {
return child;
}
public void setChild(final Child child) {
this.child = child;
}
@Override
public String toString() {
return "Simple{" +
"child=" + child +
'}';
}
}
public class Child {
@JacksonXmlText
private String text;
@JacksonXmlProperty(isAttribute = true)
private String attr;
@Override
public String toString() {
return "Child{" +
"text='" + text + '\'' +
", attr='" + attr + '\'' +
'}';
}
}
final String xml = "あたい ";
final XmlMapper xmlMapper = new XmlMapper();
final Simple simple = xmlMapper.readValue(xml, Simple.class);
System.out.println("simple = " + simple); // simple = Simple{child=Child{text='あたい', attr='hoge'}}
final Simple input = new Simple();
final Child child = new Child();
child.text = "値";
child.attr = "属性";
input.child = child;
System.out.println(xmlMapper.writeValueAsString(input)); // 値
compile 'com.fasterxml.jackson.module:jackson-module-kotlin:2.9.4'@JacksonXmlRootElement(localName = "r")
data class Hoge(val hoge:String)
val xmlMapper = XmlMapper()
xmlMapper.registerModule(KotlinModule())
println(xmlMapper.writeValueAsString(Hoge("fugafuga")))
1> create sequence test
2> go
1>
1> select start_value from sys.sequences where name = 'test'
2> go
start_value
-----------
-9223372036854775808
1> create sequence test start with 1
2> go
1>
1> select start_value from sys.sequences where name = 'test'
2> go
start_value
-----------
1
select flg, count(*) from test group by flg;
flg | count
-----+---------
0 | 1000000
1 | 1
(2 rows)
#EXPLAIN select * from test where flg = '1';
QUERY PLAN
----------------------------------------------------------------------
Index Scan using test_idx on test (cost=0.42..4.44 rows=1 width=17)
Index Cond: (flg = '1'::bpchar)
(2 rows)
# EXPLAIN select * from test where flg = '0';
QUERY PLAN
---------------------------------------------------------------
Seq Scan on test (cost=0.00..18860.01 rows=1000001 width=17)
Filter: (flg = '0'::bpchar)
(2 rows)
try (Connection connection = dataSource.getConnection()) {
try (Statement statement = connection.createStatement()) {
statement.execute("load 'auto_explain'");
statement.execute("set auto_explain.log_min_duration = 0");
statement.execute("set auto_explain.log_analyze = true");
}
try (PreparedStatement statement = connection.prepareStatement("select * from test where flg = ?")) {
for (int i = 0; i < 10; i++) {
statement.setString(1, "0");
statement.executeQuery();
}
}
try (PreparedStatement statement = connection.prepareStatement("select * from test where flg = ?")) {
statement.setString(1, "1");
statement.executeQuery();
}
}
LOG: duration: 880.555 ms plan:
Query Text: select * from test where flg = $1
Seq Scan on test (cost=0.00..18860.01 rows=1000001 width=17) (actual time=0.011..250.647 rows=1000000 loops=1)
Filter: (flg = '0'::bpchar)
Rows Removed by Filter: 1
LOG: duration: 965.254 ms plan:
Query Text: select * from test where flg = $1
Seq Scan on test (cost=0.00..18860.01 rows=1000001 width=17) (actual time=0.013..263.084 rows=1000000 loops=1)
Filter: (flg = '0'::bpchar)
Rows Removed by Filter: 1
LOG: duration: 713.326 ms plan:
Query Text: select * from test where flg = $1
Seq Scan on test (cost=0.00..18860.01 rows=1000001 width=17) (actual time=0.015..216.970 rows=1000000 loops=1)
Filter: (flg = '0'::bpchar)
Rows Removed by Filter: 1
LOG: duration: 603.937 ms plan:
Query Text: select * from test where flg = $1
Seq Scan on test (cost=0.00..18860.01 rows=1000001 width=17) (actual time=0.010..189.935 rows=1000000 loops=1)
Filter: (flg = '0'::bpchar)
Rows Removed by Filter: 1
LOG: duration: 565.579 ms plan:
Query Text: select * from test where flg = $1
Seq Scan on test (cost=0.00..18860.01 rows=1000001 width=17) (actual time=0.008..175.277 rows=1000000 loops=1)
Filter: (flg = '0'::bpchar)
Rows Removed by Filter: 1
LOG: duration: 582.891 ms plan:
Query Text: select * from test where flg = $1
Seq Scan on test (cost=0.00..18860.01 rows=1000001 width=17) (actual time=0.007..183.025 rows=1000000 loops=1)
Filter: (flg = '0'::bpchar)
Rows Removed by Filter: 1
LOG: duration: 604.002 ms plan:
Query Text: select * from test where flg = $1
Seq Scan on test (cost=0.00..18860.01 rows=1000001 width=17) (actual time=0.010..187.921 rows=1000000 loops=1)
Filter: (flg = '0'::bpchar)
Rows Removed by Filter: 1
LOG: duration: 590.842 ms plan:
Query Text: select * from test where flg = $1
Seq Scan on test (cost=0.00..18860.01 rows=1000001 width=17) (actual time=0.007..185.131 rows=1000000 loops=1)
Filter: (flg = '0'::bpchar)
Rows Removed by Filter: 1
LOG: duration: 589.730 ms plan:
Query Text: select * from test where flg = $1
Seq Scan on test (cost=0.00..18860.01 rows=1000001 width=17) (actual time=0.007..183.538 rows=1000000 loops=1)
Filter: (flg = '0'::bpchar)
Rows Removed by Filter: 1
LOG: duration: 610.742 ms plan:
Query Text: select * from test where flg = $1
Seq Scan on test (cost=0.00..18860.01 rows=1000001 width=17) (actual time=0.009..192.248 rows=1000000 loops=1)
Filter: (flg = ($1)::bpchar)
Rows Removed by Filter: 1
LOG: duration: 114.769 ms plan:
Query Text: select * from test where flg = $1
Seq Scan on test (cost=0.00..18860.01 rows=1000001 width=17) (actual time=114.755..114.756 rows=1 loops=1)
Filter: (flg = ($1)::bpchar)
Rows Removed by Filter: 1000000
G: duration: 813.314 ms plan:
Query Text: select * from test where flg = $1
Seq Scan on test (cost=0.00..18860.01 rows=1000001 width=17) (actual time=0.011..248.204 rows=1000000 loops=1)
Filter: (flg = '0'::bpchar)
Rows Removed by Filter: 1
LOG: duration: 769.790 ms plan:
Query Text: select * from test where flg = $1
Seq Scan on test (cost=0.00..18860.01 rows=1000001 width=17) (actual time=0.013..236.008 rows=1000000 loops=1)
Filter: (flg = '0'::bpchar)
Rows Removed by Filter: 1
LOG: duration: 663.801 ms plan:
Query Text: select * from test where flg = $1
Seq Scan on test (cost=0.00..18860.01 rows=1000001 width=17) (actual time=0.013..198.553 rows=1000000 loops=1)
Filter: (flg = '0'::bpchar)
Rows Removed by Filter: 1
LOG: duration: 562.532 ms plan:
Query Text: select * from test where flg = $1
Seq Scan on test (cost=0.00..18860.01 rows=1000001 width=17) (actual time=0.009..177.537 rows=1000000 loops=1)
Filter: (flg = '0'::bpchar)
Rows Removed by Filter: 1
LOG: duration: 599.577 ms plan:
Query Text: select * from test where flg = $1
Seq Scan on test (cost=0.00..18860.01 rows=1000001 width=17) (actual time=0.009..188.422 rows=1000000 loops=1)
Filter: (flg = '0'::bpchar)
Rows Removed by Filter: 1
LOG: duration: 611.355 ms plan:
Query Text: select * from test where flg = $1
Seq Scan on test (cost=0.00..18860.01 rows=1000001 width=17) (actual time=0.008..192.423 rows=1000000 loops=1)
Filter: (flg = '0'::bpchar)
Rows Removed by Filter: 1
LOG: duration: 626.638 ms plan:
Query Text: select * from test where flg = $1
Seq Scan on test (cost=0.00..18860.01 rows=1000001 width=17) (actual time=0.010..197.469 rows=1000000 loops=1)
Filter: (flg = '0'::bpchar)
Rows Removed by Filter: 1
LOG: duration: 639.909 ms plan:
Query Text: select * from test where flg = $1
Seq Scan on test (cost=0.00..18860.01 rows=1000001 width=17) (actual time=0.012..200.366 rows=1000000 loops=1)
Filter: (flg = '0'::bpchar)
Rows Removed by Filter: 1
LOG: duration: 590.332 ms plan:
Query Text: select * from test where flg = $1
Seq Scan on test (cost=0.00..18860.01 rows=1000001 width=17) (actual time=0.007..187.930 rows=1000000 loops=1)
Filter: (flg = '0'::bpchar)
Rows Removed by Filter: 1
LOG: duration: 587.067 ms plan:
Query Text: select * from test where flg = $1
Seq Scan on test (cost=0.00..18860.01 rows=1000001 width=17) (actual time=0.012..185.482 rows=1000000 loops=1)
Filter: (flg = '0'::bpchar)
Rows Removed by Filter: 1
LOG: duration: 0.018 ms plan:
Query Text: select * from test where flg = $1
Index Scan using test_idx on test (cost=0.42..4.44 rows=1 width=17) (actual time=0.014..0.014 rows=1 loops=1)
Index Cond: (flg = '1'::bpchar)
<script src="//cdnjs.cloudflare.com/ajax/libs/semantic-ui-calendar/0.0.8/calendar.min.js"
type="text/javascript"></script>
<link rel="stylesheet" type="text/css"
href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui-calendar/0.0.8/calendar.min.css"/>
<div class="field ui calendar required">
<label>日付</label>
<div class="ui input left icon">
<i class="calendar icon"></i>
<input type="text" name="date" placeholder="日付">
</div>
</div>
$('.ui.calendar').calendar({
type: 'date'
})

$('.ui.calendar').calendar({
type: 'date',
formatter: {
date: function (date) {
var day = ('0' + date.getDate()).slice(-2);
var month = ('0' + (date.getMonth() + 1)).slice(-2);
var year = date.getFullYear();
return year + '/' + month + '/' + day;
}
}
})