「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