This commit is contained in:
redkale
2024-05-27 13:54:13 +08:00
8 changed files with 593 additions and 593 deletions

View File

@@ -1,21 +1,21 @@
syntax = "proto3";
// 生成类的包名
option java_package = "org.redkalex.test.protobuf";
message PSimpleBean {
message PSimpleEntry {
sint32 id = 1;
string name = 2;
string email = 3;
}
message PTwoEntry {
sint32 status = 1;
sint64 createtime = 2;
}
PSimpleEntry simple = 1;
PTwoEntry two = 2;
string strings = 3 ;
}
syntax = "proto3";
// 生成类的包名
option java_package = "org.redkalex.test.protobuf";
message PSimpleBean {
message PSimpleEntry {
sint32 id = 1;
string name = 2;
string email = 3;
}
message PTwoEntry {
sint32 status = 1;
sint64 createtime = 2;
}
PSimpleEntry simple = 1;
PTwoEntry two = 2;
string strings = 3 ;
}

View File

@@ -1,36 +1,36 @@
syntax = "proto3";
// 生成类的包名
option java_package = "org.redkalex.test.protobuf";
message PTestBean {
message PTestEntry {
repeated bool bools = 1;
repeated bytes bytes = 2;
repeated sint32 chars = 3;
repeated sint32 shorts = 4;
}
repeated bool bools = 1;
repeated bytes bytes = 2;
repeated sint32 chars = 3;
repeated PTestEntry entrys = 4;
repeated sint32 ints = 5;
repeated float floats = 6;
repeated sint64 longs = 7;
repeated double doubles = 8;
repeated string strings = 9;
sint32 id = 10;
string name = 11;
string email = 12;
Kind kind = 13;
map<string,sint32> map = 14;
string end = 15;
enum Kind {
ONE =0;
TWO =1;
THREE =2;
}
}
syntax = "proto3";
// 生成类的包名
option java_package = "org.redkalex.test.protobuf";
message PTestBean {
message PTestEntry {
repeated bool bools = 1;
repeated bytes bytes = 2;
repeated sint32 chars = 3;
repeated sint32 shorts = 4;
}
repeated bool bools = 1;
repeated bytes bytes = 2;
repeated sint32 chars = 3;
repeated PTestEntry entrys = 4;
repeated sint32 ints = 5;
repeated float floats = 6;
repeated sint64 longs = 7;
repeated double doubles = 8;
repeated string strings = 9;
sint32 id = 10;
string name = 11;
string email = 12;
Kind kind = 13;
map<string,sint32> map = 14;
string end = 15;
enum Kind {
ONE =0;
TWO =1;
THREE =2;
}
}

View File

@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="" transaction-type="RESOURCE_LOCAL">
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<shared-cache-mode>ALL</shared-cache-mode>
<validation-mode>NONE</validation-mode>
<properties>
<property name="javax.persistence.jdbc.url" value="jdbc:mysql://127.0.0.1:3306/test?autoReconnect=true&amp;autoReconnectForPools=true&amp;characterEncoding=utf8"/>
<property name="javax.persistence.jdbc.user" value="root"/>
<property name="javax.persistence.jdbc.password" value="1234"/>
</properties>
</persistence-unit>
</persistence>
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="" transaction-type="RESOURCE_LOCAL">
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<shared-cache-mode>ALL</shared-cache-mode>
<validation-mode>NONE</validation-mode>
<properties>
<property name="javax.persistence.jdbc.url" value="jdbc:mysql://127.0.0.1:3306/test?autoReconnect=true&amp;autoReconnectForPools=true&amp;characterEncoding=utf8"/>
<property name="javax.persistence.jdbc.user" value="root"/>
<property name="javax.persistence.jdbc.password" value="1234"/>
</properties>
</persistence-unit>
</persistence>