You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by dd...@apache.org on 2020/07/20 20:49:03 UTC
[tomee] branch master updated: TOMEE-2881 Translate to Portuguese:
examples/persistence-fragment
This is an automated email from the ASF dual-hosted git repository.
dds pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git
The following commit(s) were added to refs/heads/master by this push:
new 5f920ad TOMEE-2881 Translate to Portuguese: examples/persistence-fragment
new 540847f Merge pull request #690 from Daniel-Dos/TOMEE-2881
5f920ad is described below
commit 5f920ad17f0348e8e64126c0aaa7454779876963
Author: Daniel Dias <da...@gmail.com>
AuthorDate: Thu Jul 16 20:24:17 2020 -0300
TOMEE-2881 Translate to Portuguese: examples/persistence-fragment
---
examples/persistence-fragment/README.adoc | 8 ++++++--
.../persistence-fragment/{README.adoc => README_pt.adoc} | 16 ++++++++++------
2 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/examples/persistence-fragment/README.adoc b/examples/persistence-fragment/README.adoc
index 34aa5f2..12aafbe 100644
--- a/examples/persistence-fragment/README.adoc
+++ b/examples/persistence-fragment/README.adoc
@@ -69,13 +69,15 @@ public class Movie {
----
== persistence-fragment.xml
-
+[source,java]
+----
<persistence-fragment version="2.0">
<persistence-unit-fragment name="movie-unit">
<class>org.superbiz.injection.jpa.Movie</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
</persistence-unit-fragment>
</persistence-fragment>
+----
== MoviesTest
@@ -117,7 +119,8 @@ public class MoviesTest {
----
== persistence.xml
-
+[source,java]
+----
<persistence version="2.0"
xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -131,3 +134,4 @@ public class MoviesTest {
</properties>
</persistence-unit>
</persistence>
+----
\ No newline at end of file
diff --git a/examples/persistence-fragment/README.adoc b/examples/persistence-fragment/README_pt.adoc
similarity index 87%
copy from examples/persistence-fragment/README.adoc
copy to examples/persistence-fragment/README_pt.adoc
index 34aa5f2..65051ac 100644
--- a/examples/persistence-fragment/README.adoc
+++ b/examples/persistence-fragment/README_pt.adoc
@@ -3,11 +3,11 @@
:jbake-type: page
:jbake-status: published
-The JPA provides Java developers with an object/relational mapping facility for managing relational data in Java applications.
+O JPA fornece aos desenvolvedores Java um recurso de mapeamento objeto/relacional para gerenciar dados relacionais em aplicações Java.
-@Entity define the entity class that you want to convert into a table in a database.
-@Id define the main key of the table.
-@GeneratedValue provides for the specification of generation strategies for the values of primary keys.
+`@Entity` define a classe de entidade que você deseja converter em uma tabela em um banco de dados.
+`@Id` define a chave principal da tabela.
+O `@GeneratedValue` fornece a especificação de estratégias de geração para os valores das chaves primárias.
== Movie
@@ -69,13 +69,15 @@ public class Movie {
----
== persistence-fragment.xml
-
+[source,java]
+----
<persistence-fragment version="2.0">
<persistence-unit-fragment name="movie-unit">
<class>org.superbiz.injection.jpa.Movie</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
</persistence-unit-fragment>
</persistence-fragment>
+----
== MoviesTest
@@ -117,7 +119,8 @@ public class MoviesTest {
----
== persistence.xml
-
+[source,java]
+----
<persistence version="2.0"
xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -131,3 +134,4 @@ public class MoviesTest {
</properties>
</persistence-unit>
</persistence>
+----
\ No newline at end of file