100% found this document useful (5 votes)
54 views

Instant download Pro JPA 2 in Java EE 8: An In-Depth Guide to Java Persistence APIs - Third Edition Mike Keith pdf all chapter

Guide

Uploaded by

wedlilari77
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (5 votes)
54 views

Instant download Pro JPA 2 in Java EE 8: An In-Depth Guide to Java Persistence APIs - Third Edition Mike Keith pdf all chapter

Guide

Uploaded by

wedlilari77
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 65

Experience Seamless Full Ebook Downloads for Every Genre at textbookfull.

com

Pro JPA 2 in Java EE 8: An In-Depth Guide to Java


Persistence APIs - Third Edition Mike Keith

https://textbookfull.com/product/pro-jpa-2-in-java-ee-8-an-
in-depth-guide-to-java-persistence-apis-third-edition-mike-
keith/

OR CLICK BUTTON

DOWNLOAD NOW

Explore and download more ebook at https://textbookfull.com


Recommended digital products (PDF, EPUB, MOBI) that
you can download immediately if you are interested.

Pro CDI 2 in Java EE 8 - An In-Depth Guide to Context and


Dependency Injection. 1st Edition Jan Beernink

https://textbookfull.com/product/pro-cdi-2-in-java-ee-8-an-in-depth-
guide-to-context-and-dependency-injection-1st-edition-jan-beernink/

textboxfull.com

Pro CDI 2 in Java EE 8 An In Depth Guide to Context and


Dependency Injection 1st Edition Jan Beernink Arjan Tijms

https://textbookfull.com/product/pro-cdi-2-in-java-ee-8-an-in-depth-
guide-to-context-and-dependency-injection-1st-edition-jan-beernink-
arjan-tijms/
textboxfull.com

Pro JPA 2 2nd Edition Keith Mike

https://textbookfull.com/product/pro-jpa-2-2nd-edition-keith-mike/

textboxfull.com

Practical JSF in Java EE 8 Michael Müller

https://textbookfull.com/product/practical-jsf-in-java-ee-8-michael-
muller/

textboxfull.com
The Definitive Guide to JSF in Java EE 8: Building Web
Applications with JavaServer Faces Bauke Scholtz

https://textbookfull.com/product/the-definitive-guide-to-jsf-in-java-
ee-8-building-web-applications-with-javaserver-faces-bauke-scholtz/

textboxfull.com

Java Performance In Depth Advice for Tuning and


Programming Java 8 11 and Beyond 2nd Edition Scott Oaks

https://textbookfull.com/product/java-performance-in-depth-advice-for-
tuning-and-programming-java-8-11-and-beyond-2nd-edition-scott-oaks/

textboxfull.com

Building RESTful Web Services with Java EE 8 Create modern


RESTful web services with the Java EE 8 API Mario-Leander
Reimer
https://textbookfull.com/product/building-restful-web-services-with-
java-ee-8-create-modern-restful-web-services-with-the-java-ee-8-api-
mario-leander-reimer/
textboxfull.com

Beginning EJB in Java EE 8: Building Applications with


Enterprise JavaBeans Jonathan Wetherbee

https://textbookfull.com/product/beginning-ejb-in-java-ee-8-building-
applications-with-enterprise-javabeans-jonathan-wetherbee/

textboxfull.com

Java EE 7 Development with NetBeans 8 1st Edition


Heffelfinger David R

https://textbookfull.com/product/java-ee-7-development-with-
netbeans-8-1st-edition-heffelfinger-david-r/

textboxfull.com
Mike Keith, Merrick Schincariol and Massimo Nardone

Pro JPA 2 in Java EE 8


An In-Depth Guide to Java Persistence
APIs
3rd ed.
Mike Keith
Ottawa, Ontario, Canada

Merrick Schincariol
RR 3, RR 3, Almonte, Ontario, Canada

Massimo Nardone
Helsinki, Finland

Any source code or other supplementary material referenced by the


author in this book is available to readers on GitHub via the book’s
product page, located at www.apress.com/9781484234198 . For
more detailed information, please visit www.apress.com/source-
code .

ISBN 978-1-4842-3419-8 e-ISBN 978-1-4842-3420-4


https://doi.org/10.1007/978-1-4842-3420-4

Library of Congress Control Number: 2018932342

© Mike Keith, Merrick Schincariol, Massimo Nardone 2018

This work is subject to copyright. All rights are reserved by the


Publisher, whether the whole or part of the material is concerned,
specifically the rights of translation, reprinting, reuse of illustrations,
recitation, broadcasting, reproduction on microfilms or in any other
physical way, and transmission or information storage and retrieval,
electronic adaptation, computer software, or by similar or dissimilar
methodology now known or hereafter developed.

Trademarked names, logos, and images may appear in this book.


Rather than use a trademark symbol with every occurrence of a
trademarked name, logo, or image we use the names, logos, and
images only in an editorial fashion and to the benefit of the
trademark owner, with no intention of infringement of the
trademark.The use in this publication of trade names, trademarks,
service marks, and similar terms, even if they are not identified as
such, is not to be taken as an expression of opinion as to whether or
not they are subject to proprietary rights.

While the advice and information in this book are believed to be true
and accurate at the date of publication, neither the authors nor the
editors nor the publisher can accept any legal responsibility for any
errors or omissions that may be made. The publisher makes no
warranty, express or implied, with respect to the material contained
herein.

Printed on acid-free paper

Distributed to the book trade worldwide by Springer


Science+Business Media New York, 233 Spring Street, 6th Floor,
New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505,
e-mail [email protected], or visit
www.springeronline.com. Apress Media, LLC is a California LLC and
the sole member (owner) is Springer Science + Business Media
Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware
corporation.
To my wife Darleen, the perfect mother, and to Cierra, Ariana,
Jeremy, and Emma, who brighten my life and make me strive to be a
better person.
—Mike
To Anthony, whose boundless creativity continues to inspire me.
To Evan, whose boisterous enthusiasm motivates me to take on new
challenges. To Kate, who proves that size is no object when you
have the right attitude. I love you all.
—Merrick
I would like to dedicate this book to the memory of my beloved
late mother Maria Augusta Ciniglio. Thanks mom for all the great
things you taught me, for making me a good person, for making me
study to become a computing scientist, and for the great memories
you left me. You will be loved and missed forever. I love you mom.
RIP.
—Massimo
Acknowledgments
Many thanks go to my wonderful family—my wife Pia, and my
children Luna, Leo, and Neve—for supporting me when working on
this book. You are the most beautiful aspect of my life.
I want to thank my beloved late mother Maria Augusta Ciniglio
who always supported and loved me so much. I will love and miss
you forever, my dearest mom.
I also need to thank my beloved father Giuseppe and my
brothers Mario and Roberto for your endless love and for being the
best dad and brothers in the world.
This book is also dedicated to Doctor Antonio Catapano, for being
such a great person with a big heart and taking care of me and my
mother. To my sister in law Susanna Cennamo, to my dear cousins
Rosaria Scudieri, Pina and Elisa Franzese, and Francesco Ciniglio, for
loving and supporting me and my mother like no other. To Pertti and
Marianna Kantola, for teaching me how to be a good programmer,
taking care of me, and treating me like their son. To Antti, Piia, and
Daniela Jalonen for being great and supportive friends, as well as to
Anton Jalonen, who will become a great software engineer. Anton,
may this book be an inspiration to your great IT future.
I also want to thank Steve Anglin and Matthew Moodie for giving
me the opportunity to write this book. A special thanks goes, as
usual, to Mark Powers for doing such a great job and supporting me
during the editorial process.
Finally I want to thank Mario Faliero, a good friend and the
technical reviewer of this book, for helping me make a better book.
Table of Contents
Chapter 1 :​Introduction

Relational Databases

Object-Relational Mapping

The Impedance Mismatch

Java Support for Persistence

Proprietary Solutions

JDBC

Enterprise JavaBeans

Java Data Objects

Why Another Standard?​

The Java Persistence API

History of the Specification

Overview

Summary

Chapter 2 :​Getting Started

Entity Overview

Persistability

Identity
Transactionality​

Granularity

Entity Metadata

Annotations

XML

Configuration by Exception

Creating an Entity

Entity Manager

Obtaining an Entity Manager

Persisting an Entity

Finding an Entity

Removing an Entity

Updating an Entity

Transactions

Queries

Putting It All Together

Packaging It Up

Persistence Unit

Persistence Archive

Summary
Chapter 3 :​Enterprise Applications

Application Component Models

Session Beans

Stateless Session Beans

Stateful Session Beans

Singleton Session Beans

Servlets

Dependency Management and CDI

Dependency Lookup

Dependency Injection

Declaring Dependencies

CDI and Contextual Injection

CDI Beans

Injection and Resolution

Scopes and Contexts

Qualified Injection

Producer Methods and Fields

Using Producer Methods with JPA Resources

Transaction Management

Transaction Review
Enterprise Transactions in Java

Putting It All Together

Defining the Component

Defining the User Interface

Packaging It Up

Summary

Chapter 4 :​Object-Relational Mapping

Persistence Annotations

Accessing Entity State

Field Access

Property Access

Mixed Access

Mapping to a Table

Mapping Simple Types

Column Mappings

Lazy Fetching

Large Objects

Enumerated Types

Temporal Types

Transient State
Mapping the Primary Key

Overriding the Primary Key Column

Primary Key Types

Identifier Generation

Relationships

Relationship Concepts

Mappings Overview

Single-Valued Associations

Collection-Valued Associations

Lazy Relationships

Embedded Objects

Summary

Chapter 5 :​Collection Mapping

Relationships and Element Collections

Using Different Collection Types

Sets or Collections

Lists

Maps

Duplicates

Null Values
Best Practices

Summary

Chapter 6 :​Entity Manager

Persistence Contexts

Entity Managers

Container-Managed Entity Managers

Application-Managed Entity Managers

Transaction Management

JTA Transaction Management

Resource-Local Transactions

Transaction Rollback and Entity State

Choosing an Entity Manager

Entity Manager Operations

Persisting an Entity

Finding an Entity

Removing an Entity

Cascading Operations

Clearing the Persistence Context

Synchronization with the Database

Detachment and Merging


Detachment

Merging Detached Entities

Working with Detached Entities

Summary

Chapter 7 :​Using Queries

Java Persistence Query Language

Getting Started

Filtering Results

Projecting Results

Joins Between Entities

Aggregate Queries

Query Parameters

Defining Queries

Dynamic Query Definition

Named Query Definition

Dynamic Named Queries

Parameter Types

Executing Queries

Working with Query Results

Stream Query Results


Query Paging

Queries and Uncommitted Changes

Query Timeouts

Bulk Update and Delete

Using Bulk Update and Delete

Bulk Delete and Relationships

Query Hints

Query Best Practices

Named Queries

Report Queries

Vendor Hints

Stateless Beans

Bulk Update and Delete

Provider Differences

Summary

Chapter 8 :​Query Language

Introducing JP QL

Terminology

Example Data Model

Example Application
Select Queries

SELECT Clause

FROM Clause

WHERE Clause

Inheritance and Polymorphism

Scalar Expressions

ORDER BY Clause

Aggregate Queries

Aggregate Functions

GROUP BY Clause

HAVING Clause

Update Queries

Delete Queries

Summary

Chapter 9 :​Criteria API

Overview

The Criteria API

Parameterized Types

Dynamic Queries

Building Criteria API Queries


Creating a Query Definition

Basic Structure

Criteria Objects and Mutability

Query Roots and Path Expressions

The SELECT Clause

The FROM Clause

The WHERE Clause

Building Expressions

The ORDER BY Clause

The GROUP BY and HAVING Clauses

Bulk Update and Delete

Strongly Typed Query Definitions

The Metamodel API

Strongly Typed API Overview

The Canonical Metamodel

Choosing the Right Type of Query

Summary

Chapter 10 :​Advanced Object-Relational Mapping

Table and Column Names

Converting Entity State


Creating a Converter

Declarative Attribute Conversion

Automatic Conversion

Converters and Queries

Complex Embedded Objects

Advanced Embedded Mappings

Overriding Embedded Relationships

Compound Primary Keys

ID Class

Embedded ID Class

Derived Identifiers

Basic Rules for Derived Identifiers

Shared Primary Key

Multiple Mapped Attributes

Using EmbeddedId

Advanced Mapping Elements

Read-Only Mappings

Optionality

Advanced Relationships

Using Join Tables


Avoiding Join Tables

Compound Join Columns

Orphan Removal

Mapping Relationship State

Multiple Tables

Inheritance

Class Hierarchies

Inheritance Models

Mixed Inheritance

Summary

Chapter 11 :​Advanced Queries

SQL Queries

Native Queries vs.​JDBC

Defining and Executing SQL Queries

SQL Result Set Mapping

Parameter Binding

Stored Procedures

Entity Graphs

Entity Graph Annotations

Entity Graph API


Managing Entity Graphs

Using Entity Graphs

Summary

Chapter 12 :​Other Advanced Topics

Lifecycle Callbacks

Lifecycle Events

Callback Methods

Entity Listeners

Inheritance and Lifecycle Events

Validation

Using Constraints

Invoking Validation

Validation Groups

Creating New Constraints

Validation in JPA

Enabling Validation

Setting Lifecycle Validation Groups

Concurrency

Entity Operations

Entity Access
Refreshing Entity State

Locking

Optimistic Locking

Pessimistic Locking

Caching

Sorting Through the Layers

Shared Cache

Utility Classes

PersistenceUtil

PersistenceUnitU​til

Summary

Chapter 13 :​XML Mapping Files

The Metadata Puzzle

The Mapping File

Disabling Annotations

Persistence Unit Defaults

Mapping File Defaults

Queries and Generators

Managed Classes and Mappings

Converters
Summary

Chapter 14 :​Packaging and Deployment

Configuring Persistence Units

Persistence Unit Name

Transaction Type

Persistence Provider

Data Source

Mapping Files

Managed Classes

Shared Cache Mode

Validation Mode

Adding Properties

Building and Deploying

Deployment Classpath

Packaging Options

Persistence Unit Scope

Outside the Server

Configuring the Persistence Unit

Specifying Properties at Runtime

System Classpath
Schema Generation

The Generation Process

Deployment Properties

Runtime Properties

Mapping Annotations Used by Schema Generation

Unique Constraints

Null Constraints

Indexes

Foreign Key Constraints

String-Based Columns

Floating Point Columns

Defining the Column

Summary

Chapter 15 :​Testing

Testing Enterprise Applications

Terminology

Testing Outside the Server

JUnit

Unit Testing

Testing Entities
Testing Entities in Components

The Entity Manager in Unit Tests

Integration Testing

Using the Entity Manager

Components and Persistence

Test Frameworks

Best Practices

Summary

Index
About the Authors and About the
Technical Reviewer
About the Authors
Mike Keith
was the co-specification lead for JPA 1.0 and
a member of the JPA 2.0 and JPA 2.1 expert
groups. He sits on a number of other Java
Community Process expert groups and the
Enterprise Expert Group (EEG) in the OSGi
Alliance. He holds a Master’s degree in
Computer Science from Carleton University,
and has over 20 years experience in
persistence and distributed systems research
and practice. He has written papers and
articles on JPA and spoken at numerous
conferences around the world. He is employed as an architect at
Oracle in Ottawa, Canada, and is married with four kids and two
dogs.

Merrick Schincariol
is a consulting engineer at Oracle, specializing in middleware
technologies. He has a Bachelor of Science degree in Computer
Science from Lakehead University, and has more than a decade of
experience in enterprise software development. He spent some time
consulting in the pre-Java enterprise and business intelligence fields
before moving on to write Java and J2EE applications. His
experience with large-scale systems and data warehouse design
gave him a mature and practiced perspective on enterprise software,
which later propelled him into doing Java EE
container implementation work.

Massimo Nardone

has more than 24 years of experience in


Security, Web/mobile development, cloud,
and IT architecture. His true IT passions are
security and Android.
He has been programming and teaching
others how to program with Android, Perl,
PHP, Java, VB, Python, C/C++, and MySQL
for more than 20 years.
He holds a Master of Science degree in
Computing Science from the University of
Salerno, Italy. He has worked as a Project
Manager, Software Engineer, Research Engineer, Chief Security
Architect, Information Security Manager, PCI/SCADA Auditor, and
Senior Lead IT Security/Cloud/SCADA Architect for many years.
His technical skills include security, Android, cloud, Java, MySQL,
Drupal, Cobol, Perl, Web and mobile development, MongoDB, D3,
Joomla, Couchbase, C/C++, WebGL, Python, Pro Rails, Django CMS,
Jekyll, Scratch, and more.
He worked as a visiting lecturer and supervisor at the Networking
Laboratory of the Helsinki University of Technology (Aalto
University). He also holds four international patents (in the PKI, SIP,
SAML, and Proxy areas).
He currently works as Chief Information Security Office (CISO)
for Cargotec Oyj and is a member of the ISACA Finland Chapter
Board.
Massimo has reviewed more than 45 IT books for different
publishers and is the coauthor of Pro Android Games (Apress, 2015).

About the Technical Reviewer


Mario Faliero
is a telecommunications engineer and
entrepreneur. He has more than ten years of
experience with radio frequency hardware
engineering. Mario has extensive experience
in numerical coding, using scripting
languages (MATLAB and Python) and
compiled languages (C/C++ and Java). He
has been responsible for the development of
electromagnetic assessment tools for space
and commercial applications. Mario received his Master’s degree
from the University of Siena.
© Mike Keith, Merrick Schincariol, Massimo Nardone 2018
Mike Keith, Merrick Schincariol and Massimo Nardone, Pro JPA 2 in Java EE 8,
https://doi.org/10.1007/978-1-4842-3420-4_1

1. Introduction
Mike Keith1 , Merrick Schincariol2 and
Massimo Nardone3
(1) Ottawa, Ontario, Canada
(2) RR 3, RR 3, Almonte, Ontario, Canada
(3) Helsinki, Finland

Electronic supplementary material


The online version of this chapter (https://​doi.​org/​10.​1007/​978-1-
4842-3420-4_​1) contains supplementary material, which is available
to authorized users.

Enterprise applications are defined by their need to collect, process,


transform, and report on vast amounts of information. And, of
course, that information has to be kept somewhere. Storing and
retrieving data is a multibillion dollar business, evidenced in part by
the growth of the database market as well as the emergence of
cloud-based storage services. Despite all the available technologies
for data management, application designers still spend much of their
time trying to efficiently move their data to and from storage.
Despite the success the Java platform has had in working with
database systems, for a long time it suffered from the same problem
that has plagued other object-oriented programming languages.
Moving data back and forth between a database system and the
object model of a Java application was a lot harder than it needed to
be. Java developers either wrote lots of code to convert row and
column data into objects, or found themselves tied to proprietary
frameworks that tried to hide the database from them. Fortunately, a
standard solution, the Java Persistence API (JPA), was introduced
into the platform to bridge the gap between object-oriented domain
models and relational database systems.
This book introduces version 2.2 of the Java Persistence API as
part of the Java EE 8 and explores everything that it has to offer
developers.
Maintenance release of JPA 2.2 started during 2017 under JSR
338 and was finally approved on June 19, 2017.
Here is the official Java Persistence 2.2 Maintenance release
statement:
“The Java Persistence 2.2 specification enhances the Java
Persistence API with support for repeating annotations; injection into
attribute converters; support for mapping of the
java.time.LocalDate, java.time.LocalTime,
java.time.LocalDateTime, java.time.OffsetTime, and
java.time.OffsetDateTime types; and methods to retrieve the
results of Query and TypedQuery as streams.”
One of its strengths is that it can be slotted into whichever layer,
tier, or framework an application needs it to be in. Whether you are
building client-server applications to collect form data in a Swing
application or building a website using the latest application
framework, JPA can help you provide persistence more effectively.
To set the stage for JPA, this chapter first takes a step back to
show where we’ve been and what problems we are trying to solve.
From there, we will look at the history of the specification and give
you a high-level view of what it has to offer.

Relational Databases
Many ways of persisting data have come and gone over the years,
and no concept has more staying power than the relational
database. Even in the age of the cloud, when “Big Data” and
“NoSQL” regularly steal the headlines, relational database services
are in consistent demand to enable today's enterprise applications
running in the cloud. While key-value and document-oriented NoSQL
stores have their place, relational stores remain the most popular
general-purpose databases in existence, and they are where the vast
majority of the world’s corporate data is stored. They are the
starting point for every enterprise application and often have a
lifespan that continues long after the application has faded away.
Understanding relational data is key to successful enterprise
development. Developing applications to work well with database
systems is a commonly acknowledged hurdle of software
development. A good deal of Java’s success can be attributed to its
widespread adoption for building enterprise database systems. From
consumer websites to automated gateways, Java applications are at
the heart of enterprise application development. Figure 1-1 shows
an example of a relational database of user to car.

Figure 1-1 User to car relational database

Object-Relational Mapping
“The domain model has a class. The database has a table. They look
pretty similar. It should be simple to convert one to the other
Exploring the Variety of Random
Documents with Different Content
on wealth, partly on race. Already certain occupations are regarded
as the special province of certain nationalities, and native parents
recoil from the prospect of having their children enter them to work
side by side with the aliens. Only the beginnings of these changes are
as yet manifest, and no one can foretell what the outcome will be. But
even the beginnings must give us pause. There can be no more
pernicious social classification in a nation than one based on race.
Distinctions resting on wealth, religion, or education can be
overcome, potentially at least. Distinctions of birth affect only a small
proportion of a society, and exist only in nations long habituated to
them. But distinctions of race affect the entire population are
fundamental, and can never be obliterated except as assimilation is
so perfect that race is forgotten. No effort of the individual can blot
out his racial identification. The most familiar example yet developed
in the United States is that of the Hebrews. However sincerely we
may admire their fine racial traits, however closely we may associate
with individuals of the race, we cannot deny that they constitute a
separate body in our population in many respects.[327] Summer hotels
are closed to them, or else other people avoid those resorts.
Americans move out of the sections of cities where they are moving
in. Select clubs are closed to them. It is an indictment against the
American people that these things are so. We, who pose as the
friends of all races, however downtrodden and despised, should be
ready to take them into equality with us when they seek refuge on
our shores. Both Hebrews and Americans may resent the bald
statement of such facts. Can we deny their truth?
Nor is it only in high society, nor only among Americans, that this
friction is felt. In the slums of our cities bitter feeling exists between
the Italians and the Jews.[328] Nor is racial antagonism confined to
any two or three races.[329] Employers of labor find it wholly
expedient to arrange their workers in groups of the same nationality.
[330]
Austria-Hungary is an example of the conditions that may result
when too many jarring nationalities are included within a national
territory. But the racial groups in Austria-Hungary do not compare
in diversity with those which are gradually forming in the United
States.
In the political aspects of the immigration situation there has been
a peculiar reversal of public opinion in the last three quarters of a
century. In the days of the Native Americans and the Know nothings,
the uneasiness was mainly due to the fear that too many aliens would
acquire the rights of citizenship. Then it was the naturalized
foreigner who was the undesirable. Nowadays, the fear is that the
foreigners will ignore the privileges of citizenship, and a high
percentage of naturalization is a test of desirability in any foreign
group. This change may be attributed to a change in the situation of
the United States, and to a difference in the character and causes of
immigration. During the first half of the nineteenth century the
United States was essentially a new country. Political questions were
predominant, and the memory of the men who fell in the fight for
freedom was still fresh in the minds of their sons. The immigrants of
the period, on the other hand, were actuated to a large extent by the
desire for political freedom, and were keen to secure all the power
possible in this country. At the present time, the predominating
interests are wholly economic, and even the political questions of the
day have an economic flavor. At the same time, the motives of the
immigrants are almost wholly economic. So the jealousy between
native and foreigner now concerns itself mainly with the industrial
relations, and anything which indicates an inclination on the part of
the alien to ally himself permanently with the interests of the country
is welcomed. The temporary immigrant was an almost unknown
quantity in the old days.
The naturalization laws of the United States have undergone only
slight modifications in the past hundred years.[331] The main
provisions of the present laws are as follows: In order to become a
citizen of the United States an alien must follow out the following
method of procedure: At least two years before he is admitted he
must file a preliminary declaration of intention. To do this he must
be at least eighteen years old. This declaration shall state that it is his
bona-fide intention to become a citizen of the United States, and to
renounce all other allegiance to a foreign power, and shall set forth
his name, age, occupation, personal description, place of birth, last
foreign residence and allegiance, date of arrival in the United States,
name of the vessel, if any, by which he came, and present place of
residence in the United States. Not less than two years nor more than
seven years after he has made application, he shall present a petition
in writing, signed in his own handwriting, stating the essential facts
about himself, including his declaration of allegiance to the United
States, and disclaiming belief in anarchy, or belief in or practice of
polygamy.
This petition shall be verified by at least two credible witnesses,
who are citizens of the United States, who shall state that they have
known the applicant to be a resident of the United States for a period
of at least five years continuously, and of the state or territory at least
one year immediately preceding, and that they have personal
knowledge of his good moral character and general fitness to become
a citizen of the United States.
With this petition is filed a certificate from the Department of
Commerce and Labor, stating the date, place, and manner of his
arrival, and also his declaration of intention. He shall swear in open
court his allegiance to the United States and renounce all other
allegiance.
In accordance with a recent law, no alien can now be naturalized
without an ability to speak the English language, unless he has made
entry upon the public lands of the United States. No person may be
naturalized within thirty days preceding the holding of a general
election in the territorial jurisdiction of the court. Chinese are not
admissible to citizenship.
A woman who is married to a citizen of the United States is herself
a citizen, provided she herself might be legally naturalized. This
provision has been the subject of considerable attention lately on
account of the practice of women engaged in the white slave traffic
marrying a citizen in order to avoid deportation. The Commissioner
General in his report for 1910 recommended that a more definite
statement be made of this clause, admitting of no doubt as to its
interpretation.
Children of naturalized citizens who were under the age of twenty-
one at the time of the naturalization of their parents, if dwelling in
the United States, are considered citizens, as are children of citizens,
born outside of the United States.
If any alien who has received a certificate of citizenship shall,
within five years thereafter, go to the land of his nativity or to any
other foreign country, and take up permanent residence therein, it
shall be deemed evidence of his lack of intention to become a
permanent citizen of the United States at the time of filing his
application, and warrants the canceling of his certificate.
According to the regulations of September 15, 1910, clerks of
courts are instructed not to receive declarations of intention or file
petitions for naturalization from other aliens than white persons, and
persons of African nativity or of African descent.
Jurisdiction to naturalize aliens is conferred on the following
courts: United States circuit and district courts in any state, United
States district courts for the territories, the supreme court of the
District of Columbia, and the United States courts for the Indian
territory; also all courts of record in any state or territory, having a
seal, a clerk, and jurisdiction in actions at law or equity, or law and
equity, in which the amount in controversy is unlimited.
Since the establishment of the division of naturalization by the act
of June 29, 1906, the business of naturalization has been in the
hands of the Bureau of Immigration and Naturalization.
The statistics of naturalization for the five years 1908–1912 are as
follows:
Year Declarations filed Petitions filed Certificates granted
1908 137,229 44,029 25,963
1909 145,794 43,161 38,372
1910 167,226 55,038 39,206[332]
1911 186,157 73,644 55,329
1912 169,142 95,627 69,965

332. Repts. Comm. Gen. of Imm.


In addition to the certificates granted there were, in 1912, 9635
certificates denied. These were for a variety of causes, the most
important of which was failure of the petitioners to prosecute them,
so that they were stricken from the docket. Of those which were
actually refused the largest single cause was incompetent witnesses.
There has been a large amount of fraud and trickery in connection
with naturalization, and presumably it has not wholly ceased. This
has been due partly to a lax attitude on the part of some of the court
officials, and partly to the physical impossibility of giving proper
attention to the number of candidates who apply, with the existing
machinery. There is a story of one judge in New York City who issued
nearly seven thousand papers in October, 1891, at the rate of two a
minute.[333] Many states have been very lax in their requirements for
voting. In some states aliens have been allowed to vote in both state
and federal elections, sometimes after a residence of only six months.
[334]

Even where naturalization is desired by recent immigrants, it is


not always for the most commendable reasons. Sometimes the
motive is the desire for a better chance of securing employment,[335]
sometimes the facilitating of entrance into the United States after a
trip abroad. Natives of some foreign countries, particularly Turkey,
have come to the United States with the express intention of securing
citizenship, in order to return to their native land, and carry on
business under the protection of the American flag, which carries
with it greater guarantees than their own. A special law, passed to
put a stop to such practices as these, provides that when a
naturalized alien has resided two years in the foreign state from
which he came, or five years in any other foreign state, he forfeits his
citizenship.[336]
Of all foreign races, the Irish have taken by far the largest place in
politics in this country. According to Professor Commons, the “ward
boss” is the logical product of the mixture of nationalities in the
various divisions of a city, and the Irishman is the logical man for the
work.[337] “The Irishman has above all races the mixture of ingenuity,
firmness, human sympathy, comradeship, and daring that makes
him the amalgamator of races.”[338] Possibly a sense of humor ought
to be added to these qualifications. In the eyes of Professor
Commons, such a system makes it the merest chance if the best man
is elected, and subverts our whole system of representative
government.[339] It seems beyond question that the existence of
separate racial groups in a community, each with its own prejudices
and group loyalty, must have a very disturbing influence on the
course of elections. Measures become of much less import than men
in the minds of the voters, and in the choice of men race rather than
fitness is often the determining element.
CHAPTER XVII
THE NEW PROBLEM OF IMMIGRATION

It was stated on an earlier page that the immigration situation, in


most of its important characteristics, presents an entirely new aspect
to the men of this generation, and that these changes might be
looked for under six general heads, as follows: race, volume,
distribution, economic condition of the United States, native birth
rate and quality of the immigrants. We are now prepared to consider
the truth of this assertion.
In regard to race, nothing further need be said. Sufficient facts are
already before the reader to establish the fact that the racial aspect of
the situation has undergone a sweeping and significant change in the
last thirty years. The change in volume has naturally been one of
degree, not of kind. But the change in degree has been a profound
one—more so than is often admitted. It has been pointed out
occasionally, as a sedative to the fears aroused by the immense
immigration of the twentieth century, that while the positive
immigration has increased tremendously, it has not increased at so
great a rate as the population of the country. The ratio between
immigration and total population was higher in the early fifties and
early eighties than at any subsequent period. The assumption is that
if we could successfully assimilate the immigrants of the earlier
period, we certainly ought to be able to take care of those of to-day.
But the question of assimilation depends not only upon the ratio of
immigrants to total population, but upon the proportion of foreign-
born population already in the country. In this connection the
following figures are significant. The number of foreign-born to
100,000, native-born in the population of the country at the time of
the last seven censuses was as follows:
1850 10,715
1860 15,157
1870 16,875
1880 15,365
1890 17,314
1900 15,886
1910 17,227

It thus appears that the proportion of foreign-born, even at the time


of the census of 1900, after a decade of very slight immigration, was
much higher than at the time of the beginning of large immigration,
while the last census, after the enormous immigration of the past ten
years, shows a proportion of foreign-born higher than at any
previous census, except that of 1890. Now it is the proportion of
foreign-born to native-born which determines the assimilating power
of the nation, so that without this correction the comparison between
immigration and total population is inadequate and misleading. It is
as if a fireman whose steam boiler lacked a safety valve was warned
that his gauge was going up more and more rapidly all the time, and
he replied, “Never mind, the pressure is not coming in so fast,
compared to what I already have, as it was awhile ago.”
Another circumstance which affects the ability of the country to
assimilate immigrants, and in which there has been a marked change
during the history of immigration, is the ratio of men to land, upon
which much emphasis has already been laid. As the amount of
unappropriated and unsettled land diminishes in any country, the
need of new settlers also diminishes, while the difficulty of
assimilation and the possible evils resulting from foreign population
proportionally increase. In the case of the United States the first and
simplest comparison to make is that between immigration and the
total territory of the nation. In this, as in the subsequent
comparisons, it will be desirable to leave Alaska out of consideration.
The enormous extent of that inhospitable region, to which practically
none of our immigrants ever find their way, if included in the
reckoning, would simply confuse the issue. The gross area of the
United States, exclusive of Alaska and Hawaii, at the time of the
different censuses, has been as follows: 1790 and 1800, 827,844
square miles; 1810, 1,999,775 square miles; 1820, 2,059,043 square
miles; 1830 and 1840, the same; 1850, 2,980,959 square miles; 1860
down to the present, 3,025,600 square miles.[340]
Estimating the immigration before 1820 at 10,000 per year, and
using the official figures after that date, we find that the immigration
by decades from 1791 to 1910 was as follows:

1791–1800 100,000
1801–1810 100,000
1811–1820 98,385
1821–1830 143,439
1831–1840 599,125
1841–1850 1,713,251
1851–1860 2,511,060
1861–1870 2,377,279
1871–1880 2,812,191
1881–1890 5,246,613
1891–1900 3,687,564
1900–1910 8,795,386

Combining these two sets of figures, it appears that for each


immigrant coming to this country during the decades specified, there
was at the close of the decade the following number of square miles
of territory in the United States:
1800 8.278
1810 19.998
1820 20.927
1830 14.355
1840 3.437
1850 1.739
1860 1.205
1870 1.273
1880 1.076
1890 .570
1900 .824
1910 .347

This table illustrates forcibly the fact that from the point of view of
the need of new settlers immigration at the present time is a vastly
different matter from what it has ever been before in the history of
our country. This impression is strengthened if we make another
comparison, which is even more significant for our purposes, viz. the
relation of immigration to the public domain, that is, to the land
which still remains unclaimed and open to settlement. If there were
still large tracts of good land lying unutilized, and available for
settlement, as there have been in other periods of our history, we
could take comfort in the thought that as soon as the incoming aliens
caused too great a congestion in any region, the surplus inhabitants
would overflow, by a natural process, into the less thickly settled
districts. Let us consider what the facts have to show in this respect.
In 1860 there were, as nearly as can be estimated, 939,173,057
acres of land lying unappropriated and unreserved in the public
domain. In 1906 there were 424,202,732 acres of such land,
representing the leavings, after all the best land had been chosen. In
other words, for each immigrant entering the country during the
decade ending 1860 there were 374 acres in the public domain, at
least half of it extremely valuable farm land. In 1906, for each
immigrant entering during the previous ten years, there were 68.9
acres, almost wholly arid and worthless.
The fact that the immigrants in this country do not, to any great
extent, take up this unclaimed public land does not destroy the
significance of this comparison. As long as there was a strong
movement of the native population westward, it was not so much a
matter of concern, if large numbers of foreigners were entering the
Atlantic seaboard. And this was exactly the case during the middle of
the nineteenth century. This was the period of the great internal
migration to the new lands of the Middle West. In point of fact also,
at this time, many of these pioneers were actually immigrants. It is
scarcely necessary to say that nothing comparable to this is going on
at the present time. The frontier, which has had such a determining
influence on our national life, is a thing of the past. Of the
424,202,732 acres remaining in the public domain in 1906, only a
very small part consisted of valuable farm lands, such as existed in
great abundance when the Homestead Act was passed in 1862.
Evidence of this fact is furnished by the act recently passed allowing
homesteads of 640 acres to be taken up in certain sections of
Nebraska, where it is impossible for a man to make a living from less.
Not only are the incoming hordes of aliens not now counterbalanced
by an important internal migration, but there is an actual movement,
of noteworthy dimensions, of ambitious young farmers from the
United States to the new and cheaper wheat lands in Canada.
This set of conditions may be stated in another way by saying that
the United States has changed from an agricultural to a
manufacturing and commercial nation.[341] In the early nineteenth
century the rural family was the typical one, to-day it is the urban
family. Then the simplicity and independence of the farm gave
character to the national life; to-day it is the complexity and
artificiality of the city which govern. The nineteenth century was a
period of expansion. Particularly in the earlier part of it was the
subduing of new land the fundamental consideration of national
development. This was the period of internal improvements, the
building of roads and canals, and later of railroads. It was the
adolescence of the American people. At such a period the great
demand is for accessions of population, and it is no wonder that
many of the writers of that day were frank in their demands for the
encouragement of immigration. And even in the thirties and forties,
though the miserable shipping conditions and the large number of
incoming paupers aroused a countercurrent of opinion, still the
immigrants found a logical place on the great construction works of
the period, as well as on the vacant arable lands.
This period is past. The labors of the typical alien are not now
expended on the railroad, the canal, or the farm, but in the mines
and foundries, the sweatshops and factories. The immigrants of to-
day are meeting an economic demand radically different from that of
a century or half a century, yes, we may say a quarter of a century
ago.[342]
This change is further exemplified by the increased concentration
of population in cities which the United States has witnessed in the
past century. In 1790 there were only 6 cities in the United States
with over 8000 population each, containing 3.4 per cent of the total
population. In 1840 the percentage of population in cities of this size
was still only 8.4. But in 1900 there were 545 cities of over 8000,
counting among their inhabitants 33.1 per cent of the total
population. In other words, the ratio between city and country
dwellers (taking the city of 8000 as the dividing line) has changed
from one to twenty-eight in 1790 to one to two in 1900. At the same
time the average density of population of the country as a whole has
increased from 3.7 per square mile in 1810 to 10.8 in 1860, 17.3 in
1880, and 25.6 in 1900.
Hand in hand with these changes has come a sweeping change in
the scale of production, which must have an important bearing on
the immigration situation. The early immigrants, to a very large
extent, came into more or less close personal relations with their
employers, often working side by side with them on the farm or in
the shop. Now foreigners are hired by the thousands by employers
whom they perhaps never see, certainly never have any dealings
with, the arrangements being made through some underling, very
likely a foreigner himself. Working all day side by side with others of
their own race, or of other races equally foreign, and going home at
night to crowded dwellings, inhabited by aliens, and with a European
atmosphere, the modern immigrants have but slight commerce with
anything that is calculated to inculcate American ideas or contribute
any real Americanizing influence.
Mention of the declining native birth rate in the United States had
already been made (Chapter XI), with some consideration of the
causes thereof. The fact needs to be called attention to in this
connection as another element in the changed aspect of immigration.
It is unfortunate that our census figures do not give us positive data
as to the respective birth rates of the native-born and foreign-born,
so that we have to rely upon estimates. All of these estimates,
however, agree that there has been a marked decline in the rate of
native increase, though the causes assigned vary. The population of
the United States in 1810 was 1.84 times as great as in 1790, and that
of 1840, 1.77 times as great as twenty years earlier. Since the
immigration during all this period was relatively slight, this increase
may be taken as representing a very high native birth rate. In 1900,
in spite of the large element of foreign-born with a high birth rate
then in the country, and the large immigration of the previous twenty
years, the population of the country was only 1.52 times as large as in
1880. This must represent a tremendous fall in the native birth rate.
Mr. S. G. Fisher has estimated that the rate of native increase by
decades has fallen from 33.76 per cent in the decade ending 1820 to
24.53 in the decade ending 1890. Some eminent authorities, as
previously mentioned, are of the opinion that at the present time the
native population of parts, if not the whole, of New England is not
even maintaining itself. Thus our present immigrants are being
received by, and are mingling with, a people, not vigorous and
prolific as in the early days, able to match the crowds of aliens with a
host of native-born offspring, but weak in reproductive power, and
constantly decreasing in the ability to maintain itself. In this
connection it is significant that during the last intercensal decade the
total foreign-born population increased 30.7 per cent, while the
native-born population increased only 19.5 per cent. This fact, in
connection with the high birth rate of our now large foreign-born
population, puts a new face on the question of the elimination of the
native stock.
There yet remains to be considered the matter of the quality of
immigrants to-day as compared with those of past generations. In
regard to this but little can be said in the way of positive declarations.
Quality in an immigrant is a very uncertain matter, and differs
according to the individual point of view and prejudices. What may
seem to an employer of labor high quality in an immigrant may
appear quite the reverse in the eyes of a minister. With the facts of
immigration in mind, each student of the question must determine
for himself whether the quality of our present immigrants compares
favorably with that of earlier groups. There is, however, one
consideration to which attention should be directed when examining
changes, which has materially altered the character of immigration.
This is the selective influence of the act of immigration itself, upon
those who are to come. It used to be the prevailing idea that the
immigrant represented the better individuals of his race or class, that
he was more daring, energetic, or enterprising. Traces of this notion
are still very common.[343] There was, moreover, a great amount of
truth in this view during earlier periods of immigration. Many of the
migrations of two or three centuries ago were inspired by religious or
political motives, or very often by a combination of the two. Such was
the exodus of the Huguenots from France, of the Palatines from
Germany, the Puritans from England, the Scotch-Irish from Ireland.
In such cases as these, emigration implies strength of character,
independence, firmness of conviction, moral courage, bravery,
hatred of oppression, etc. Motives such as these played no small part
in immigration movements even as late as the middle of the
nineteenth century.
More than this, it is doubtless true that the earliest immigration
from any region at any time involves a certain degree of ambition,
independence, courage, energy, forethought, all of those
characteristics which are required in the individual who forsakes the
known for the unknown, the familiar for the untried, the stable for
the unstable, the certain though hopeless present for the hopeful but
uncertain future. Such were the early immigrants to this country
from every land—not north European alone, but south European.
They possessed something of the intrepidity and daring of pioneers.
They had the strength of character to break the shackles of age-long
tradition and custom, and, taking their destiny in their hand, seek
their fortune in a new and unknown land. In this respect all new
immigration differs from all established immigration.
But all this is now a thing of the past. Not only have the religious
and political motives almost wholly disappeared in favor of the
economic in modern immigration, but the European immigrant of
to-day is in no sense going to a new or unknown land, when he
embarks for the United States. American life and conditions,
particularly economic conditions, are well known in those sections of
Europe which furnish our large contingents of immigration. The
presidential election, the panic, the state of the crops in the United
States, are familiar topics of conversation.[344] Almost every
individual in the established currents of immigration has at least one
friend in this country. Many of them know exactly where they are
going and what they are going to do. To a host of them the change is
no greater than to go to the next village in their native land, perhaps
less so. For as likely as not, just as many of their friends and relatives
are awaiting them in the new country as are lamenting them in the
old.
Neither is the voyage to-day, bad as it is, beset with the
uncertainties, hardships, and perils which used to characterize it.
The way is cleared for the travelers at every step. If their ticket is not
actually supplied to them from America, probably all or part of the
money with which it is purchased came from America. At least they
may now secure a ticket direct from a European center to their
ultimate destination in America, and every stage of the journey is
facilitated by the ingenuity of financially interested agents. Induced
immigration has always existed since the days when the press gangs
in the coast towns of England carried inducement to the point of
abduction. But probably never in the history of our country has
artificially stimulated immigration formed so large a part of the
whole as now. There is nothing, therefore, in the modern conditions
of immigration which serves as a guaranty of high quality in the
immigrants.
One other element which concerns the quality of the immigrant,
and therefore should be mentioned in this connection, is the
immense increase in what may be designated temporary or seasonal
immigration. The prominence of this type of movement in recent
years has radically modified the industrial aspect of the situation.[345]
It is possible that some of the changes reviewed above may be of a
beneficial character. However that may be, there can be no question
that, taken together, they indicate so complete an alteration in the
circumstances surrounding the admission of aliens to this country as
to require that the entire immigration situation be considered in the
light of present conditions, rather than of past history. The old stock
arguments, pro and con, which seem to have stood the test of time,
need to be thoroughly reviewed. The modern immigrant must be
viewed in the setting of to-day. Especially must it be borne in mind
that the fact—if such it be—that immigration in the past has worked
no injury to the nation, and has resulted in good to the immigrants,
by no means indicates that a continuance of past policy and practice
in the matter will entail no serious evil consequences, nor bring
about disaster in the future.
CHAPTER XVIII
THE NATURE OF THE PROBLEM

Much is said and written in these days about the “immigration


problem,” yet it is only rarely that there appears a conscious effort to
prove that such a problem exists, or to analyze its character. Is there
in the United States an immigration problem? If so, in what does it
consist? To answer these two questions is the purpose of the present
chapter.
When the great new lands of the Western Hemisphere were made
available to the inhabitants of Europe by the efforts of Columbus and
the later explorers and discoverers, there opened up before humanity
tremendous possibilities of advance.[346] The ratio between men and
land was changed for the whole civilized world. An enormous area of
fertile country was presented to the nations of Europe, by which the
operation of the Malthusian principles was checked. Peoples who
had reached the saturation point of population in Europe were given
the opportunity to utilize their acquired arts in a virgin and
practically uninhabited region. On account of the difficulties of
transportation, and the consequent slow settlement of the new
world, the results of this great alteration were only tardily developed.
In many ways the entire progress of civilization during the
nineteenth century is the outward expression of the transformation
in conditions which then took place. So far as the human mind can
anticipate, nothing of a similar nature can ever happen again on this
earth.
To the people of the new nation of the United States, as the
possessors of the most favored portion of this new territory, was
intrusted the responsibility of utilizing its marvelous resources, not
only for their own advantage, but for the securing of the greatest and
most permanent amelioration of the living conditions of the whole
human family. It was not to be expected that our forefathers should
have completely recognized the full significance of this responsibility,
nor have undertaken the administration of it with a degree of
scientific wisdom which they did not possess. Their past experience
of bad political systems enabled them to frame a plan of government
which has held the admiration of all civilized people down to the very
present. In the utilization of the material resources of the country,
however, they had no past experience to serve as a guide. No other
civilized people within the compass of human history had been
intrusted with such a profusion of virgin resources, absolutely open
to exploitation. There is no wonder that the possibilities of the
country seemed limitless, and that men proceeded to make the most
of them to serve present needs, with no thought of what the
consequences might be to future generations. Forests were cut down,
mines were wastefully worked, rivers were dammed, natural gas was
burned day and night, the soil was cultivated year after year without
enrichment, and when exhausted, abandoned. In our modern age of
conservation we are beginning to realize how ruthlessly these rich
treasures have been squandered, and are making eager and earnest
efforts to save what is left.
Something of the same sort took place in the more intangible
domain of population. Into the minds of the less than four million
people who were enumerated in the United States in 1790, even the
thought of a redundant population could hardly enter. The one great
thing that seemed to be needed was more people, and while the
natural increase of the native stock seemed to many ample to meet
the demands, there was nevertheless a hearty welcome to all sturdy
and well-intentioned aliens who elected to establish themselves
within the territory of the new nation. Especially was there a feeling
of sympathy toward those who came seeking refuge from political
tyranny or oppression in the nations of Europe. Thus the principle of
an open door, and a welcome to the “oppressed and downtrodden of
all races,” became the established policy of the nation, and as decade
succeeded decade acquired all the power and authority of tradition
and usage. As a consequence, all efforts to control or regulate the
ingress of aliens, which have been incited by the apparent needs of
the situation, have been confronted with the necessity of bearing the
burden of proof, and of assailing established dogma. This has put the
advocates of restriction into the category of “antis,” and has laid
them open to the charge of narrow-mindedness and bigotry. If it can
be conceived that the United States should have been in her present
industrial situation when she first began to frame national policies, it
is wholly probable that the restrictionists would have been
considered the conservatives, and the advocates of free immigration,
the radicals.
However this may be, the fact is that in general the open-door
policy has prevailed, and only within the last generation have
restrictive laws been passed, which have served merely to weed out
the manifestly undesirables, scarcely to diminish in any significant
measure the great bulk of the current. The resulting transfer of
people from Europe to America has been truly phenomenal. In the
period of years from 1820 to 1912 a total of 29,611,052 immigrants
came to the United States.[347] No population movement of equal
social significance, and comparable in volume, has ever taken place
within the recorded history of the human race. And never again, so
far as the human eye can see, can it be repeated, when the heyday of
immigration to the United States is over. It is inconceivable that such
a phenomenon should not have important and far-reaching effects
upon every country concerned in the movement. There is, then, an
immigration problem.
But just what is the problem? The answer to that question depends
upon the point of view. In the first place, it must be decided whether
it is desirable for nations consciously to interfere with, and try to
control, such a natural movement as this; secondly, if interference is
to be undertaken, whose welfare is to be held prominently in view—
in other words, from what standpoint is the problem to be attacked?
If the former of these queries is answered in the negative, the
problem remains a purely academic one—the study of causes and
effects, and the recording of conclusions and data, without any telic
purpose in view. No programs, schemes, or systems of reform can
emanate from such a study. If answered in the affirmative, the
problem then becomes one in applied sociology—perhaps the most
complex and important that any modern nation has ever had to deal
with. In regard to the second part of the above query, it is to be noted
that there are four possible standpoints open to choice. First, that of
the United States; second, that of the countries of source; third, that
of the immigrants; fourth, that of humanity in general. There are
possibilities of a different aspect of the problem from each of these
viewpoints. Let us consider the two parts of this query in turn.
There is a natural and deep-seated reluctance on the part of every
careful and scientific student of sociology to advocate the regulation
of any great human activity according to any man-made scheme or
formula. The laws of nature seem so much safer a guide than any
plan which, as Professor Summer says, some one has thought out in
bed.[348] The laissez-faire doctrine makes a great initial appeal. This
probably accounts in large measure for its great vogue. The broad-
minded and liberal man says, “What can be better or more just than
to let each individual work out his own destiny in the way that seems
to him best?” Particularly does such a tremendous movement as
modern immigration inspire the student with feelings of reverential
awe, rather than a desire to intermeddle. It is such a gigantic and
complex thing, and cuts straight across all social relations with such
an inclusive and unsparing sweep, that one can never know what the
unknown factors are, nor what unforeseen and unexpected
developments may arise. Certainly this seems one of the things that
had better be left alone.
But as we look at the world around us, we realize that the doctrine
of laissez-faire has proved inadequate to meet the conditions of
modern industrial life, and has broken down under the strain.[349] We
realize that self-interest, even enlightened self-interest, is not the
safest guide for the individual or for the race. We recognize the fact
that the safety of society demands that men shall not be allowed to
do as they please, nor to go where they please. The law places many
restrictions upon the free movements of men. I may not trespass
upon my neighbor’s property; I may not enter public buildings
except at specified times. If I wish to visit a fever-stricken and
quarantined city, I either am not allowed to go, or I am prevented
from coming away when I wish. These are familiar and trivial
illustrations, but they emphasize the fact that complete laissez-faire
is impossible under present conditions—in fact, probably always has
been. A host of other instances of social legislation, pure-food laws,
trust regulation, etc., might be invoked to establish the point, were it
necessary. The whole series of immigration statutes, increasing in
severity from 1882 down to the present, are evidence of the
acceptance of this principle with special relation to immigration. The
question is not, shall we have regulation or not, but how much and
what kind of regulation shall we have? The doctrine of laissez-faire,
per se, would have no greater weight as an argument against
complete suspension of immigration than it would have against the
exclusion of contract laborers.
If the personal inclinations of the individual lead him to prefer to
regard the immigration problem in the strictly academic light, no
fault can be found; but the denial of the propriety of suggesting plans
of control, the demand that the immigrants be let alone, represents
an obsolete point of view. Any amount of regulation, which proves
necessary to safeguard the interests of society, can be justified in the
light of modern opinion and practice.
Furthermore, it is to be observed that immigration will not be let
alone. It has already been demonstrated that the immigration of to-
day is not in any sense a wholly natural movement. It is stimulated at
the outset, partly by disinterested friends and relatives, partly by
purely selfish transportation interests. It is subjected to various
controls all along the way. After the immigrants reach this country,
they are often, for a long time, in almost complete subjection to the
padrone, the contractor, or the importer. Once again, the question is
not, shall immigration be a natural and uncontrolled movement or
not, but shall it be controlled by greedy, selfish, and unscrupulous
individuals, or by a well-intentioned government? For the rest of this
book we shall take the position that the immigration problem is one
of applied sociology, and that immigration is a proper subject for
government control, by such means and to such an extent as the
most careful and scientific study shall warrant.
Most problems in applied sociology have to do with interests;
certainly the problem of immigration does. Having answered the first
part of our query in the affirmative, the problem now expresses itself
thus: how shall the movement of aliens from foreign countries to the
United States be so controlled as to further the best interests of
somebody? But of whom? This is the second part of our query. It is
manifest that the United States, the countries of source, the
immigrants, and humanity in general all have interests which may be
affected by immigration, that these interests are not always
harmonious or correlative, but that they may be, and in some cases
must be, in direct opposition to each other. Any one who has
opinions on the subject must make it plain, to himself at least, which
of these interests he regards as paramount, which of these
standpoints he proposes to assume. Many of the popular arguments
on the question have been confused by the unconscious effort to take
two or more of these viewpoints at once. Each of these viewpoints is
legitimate, and has arguments on its own side, and no one should be
blamed for choosing any one. Evidently the fourth is a sort of
summation and balance of the other three. It will be profitable to
consider the first three in turn; we shall then be prepared to take the
point of view of the welfare of humanity in general.
What, then, are the arguments for and against immigration from
the point of view of the United States? The positive arguments for,
and the negative arguments against, immigration center around the
question whether the United States needs the immigrants. The
positive arguments against, and the negative arguments for,
immigration have to do with the claim that immigration injures the
United States.
The argument for immigration which, if not the strongest during
the first half of the nineteenth century, was probably the most
frequently expressed, was the sentimental one which exhibited the
United States as the natural haven of refuge for the oppressed and
unfortunate of all lands, and extended a hearty welcome to all
seekers of liberty who should come. This, as has been mentioned,
was natural under the conditions of the time. It found expression in
such words as the following, appearing in a magazine in the year
1855:
“If the physiologic principle we have endeavored to establish is
correct, it follows that America pre-eminently owes its growth and
prosperity to the amalgamation of foreign blood. To cut off,
therefore, or to discourage its influx, will be to check the current
from which our very life is drawn. The better course is evidently to
welcome and provide for this tide of immigration, rather than to
oppose and turn it away; to cherish the good influence it brings, and
regulate the bad, rather than to trample them both under foot. What,
though the population which is annually cast upon American shores
is all of the filthiest and most degraded kind! The farmer might as
well complain of the black and reeking soil into which his seed is
dropped, as the statesman of such materials as these.... Let us
welcome the houseless and the naked of every land to American
shores; in the boundless forests of the north and the south there is
room to make a home for them all. Let us invite the ill-fed and the
starving of every grade to partake of American abundance; on the
fertile fields of the west there grows corn enough to feed them all. Let
us urge the oppressed and the down trodden of every name to the
blessings of American freedom; the Star Spangled Banner is broad
enough to cover, and the eagle that sits over it is strong enough to
defend, them all.”[350]
Such talk as this is so thoroughly out of date as to sound almost
ridiculous in modern ears. In fact, the sentimental argument plays
but little part in the present agitation, for the reason that the
conditions which justify it furnish the motive to an insignificant
portion of our present immigrants, with the exception of the Russian
Jews.
Two other arguments for immigration may be styled the social and
the biological. These claim respectively that the national character
and the physical stock of the American people may be much
improved by the addition of new elements brought in by foreign
immigrants. It is pointed out that the German love for music, the
artistic temperament of the Italian, the thrift of the Slav, the outdoor
sociability of the Greek, might add—perhaps have added already—
something of great value to the life of the country. There is much
weight to this argument. It is quite conceivable that under proper
conditions of social contact on a plane of equality between foreigner
and native some such desirable transfusion of character might take
place. It is another matter altogether to claim that any such
beneficial result is transpiring, under the present conditions of the
immigrant in this country.
The biological argument brings up the much-vexed question of the
desirability of mixed stocks. There has been a prevalent opinion that
the interbreeding of two races, not too far separated in physical
stock, resulted in a type superior to either of the parent races. But
there is no agreement as to where the line between the favorable and
the unfavorable mixing shall be drawn. Some of the papers read at
the Universal Races Congress in London would seem to convey the
impression that any two races on earth might be mixed to good
advantage. But this is by no means the universal opinion of careful
anthropologists.
In regard to both of these arguments it may be said that, whatever
their intrinsic worth, they have no great positive weight as respects
the present situation in the United States. It seems likely that this
country has already within its borders all the alien elements that will
be needed for a long time to come—certainly until they are more
completely absorbed than they are at present.
There remains by far the greatest and most universal argument for
immigration—the economic one. The one plea for the free admission
of aliens, that has weight to-day, is that our industrial organization
demands it. Not only is it asserted that the rapid development of the
country would not have been possible without the immigrant and
cannot be prosecuted in the future without him, but that the
cessation of immigration would seriously cripple many of the basic
industries of this country. The former of these points has already
been considered at some length, and the conclusion was reached that
it was inconceivable that in such a country as the United States any
socially important or necessary work should have had to be foregone
in the absence of a foreign labor supply. Such an assertion implies a
lack of self-sufficiency on the part of a young and vigorous people
which is unthinkable. Whether the exploitation of our resources
would have proceeded at such a rapid pace in the past, whether this
pace could be kept up in the future, without the immigrant—these
are questions more difficult of answer. There is no doubt that at
present a large portion of our industry—possibly the greater part—is
closely dependent upon a foreign labor supply, and that a sudden
cessation of immigration would check the expansion of those
industries, though it would not necessarily prevent their continuing
on the present basis. It seems wholly probable that the development
of the country would be retarded for a time if the immigration
current was stopped.
But why this insistent demand for a rapid exploitation of our
resources? Wherein are we the gainers if the wonderful natural
riches of the country, which, as we have seen, constitute one of the
two great elements which have accounted for our past prosperity, are
consumed in the shortest possible time? In the words of Prescott F.
Hall, “what boots an extended railroad mileage or the fact that all our
coal and minerals are dug up or all our trees cut down some years or
decades sooner?” Are we so greedy for luxury in the present that we
wish to leave as little as possible of this natural advantage to future
generations? It seems hardly possible. Rather is this idea another of
those traditional survivals from the early life of the country, when
conditions were such that the exploitation of resources was really
essential to growth in per capita, as well as total, wealth, and
prosperity. Our country has, in point of fact, developed so rapidly
that the public mind has not adjusted itself to new conditions, and
the idea of the value of a rapid exploitation lingers on as an
anachronism. Possibly there is a slight element of modern
megalomania mingled with it.
If it were true that the United States, having reached its present
point of development, was unable to advance along the path of
steady and solid growth, depending solely upon its own resources,
human as well as material, it would be one of the most serious
indictments against our social situation that could possibly be made.
It is inconceivable that it should be true. It seems much more
reasonable to believe that while the suspension of accessions of
population from foreign sources would entail numerous and serious
readjustments in social and economic relations, nevertheless the
United States still has enough native virility to work out a prosperous
and independent destiny of its own. It is hard to see any important
respect in which the United States, at the present time, really needs
immigrants.
There is still another type of argument for immigration, which
might be called the indifference argument, which says, in effect,
“Very likely we do not need the immigrants, but they do us no harm.
Let them come, anyway.” The answer to this throws the burden of
proof upon the restrictionist, and makes it incumbent upon him to
show that immigration really injures the United States.
The positive arguments against immigration as at present
conducted may be grouped under eight main heads, which may be
designated as follows: (1) the numbers argument; (2) the distribution
argument; (3) the standard of living and wages argument; (4) the
pauperism and crime argument; (5) the stimulation argument; (6)
the illegal entrance argument; (7) the biological argument; (8) the
assimilation argument. In the discussion of these arguments it must
be borne in mind that they are considered with reference to
immigration as it now exists, not as it might be under other
conditions.
(1) The common argument that we have too many immigrants is
really no argument at all. There cannot be too many immigrants
unless the excessive number manifests itself in some positive evil.
What the average person who uses this argument probably means, if
he has any definite meaning in mind at all, is that there are so many
aliens coming to this country that their presence results in one or
another of the undesirable conditions which are included in the other
seven arguments.
(2) In like manner the statement that immigrants are poorly
distributed is no real argument. It has been demonstrated that there
are certain excessive tendencies toward concentration on the part of
our alien population, but unless positive evils emerge from this
condition, it is no argument against immigration.
(3) The claim that immigration has lowered the wages and
standard of living of the American workman has already been
examined, with the conclusion that it would be nearer the truth to
say that it has kept them from rising. This, however, amounts to
practically the same thing. If somebody prevents me from getting
that to which I am entitled, he to all intents and purposes makes me
suffer deprivation. The evidence on this point is so strong that it can
hardly be gainsaid. As we have seen, practically all careful students
admit it. About the only answer that can be made to this argument is
that it is not the immigrant’s fault.[351] This is undoubtedly true,
partly at least. The immigrant has no grudge against the American
workman, nor any desire to injure him. Undoubtedly he would be
glad to earn as good wages as the native, if he could. Inasmuch as he
cannot, he is not to blame if he consents to work for what he can get.
And inasmuch as his wages are low, and his family is large, and he is
anxious to save, he is not to blame if he lives on a miserably low
standard. In the whole procedure the immigrant may display the
most admirable qualities. He is simply playing his part in an
impersonal struggle for existence. But the result to the American
workman is the same. It is a question of causes and effects, not of
blame. It must be accepted as a fact that each successive wave of
immigration has tended to check the advance of the laboring men
already in the country, be they native or foreign. And here is where
the numbers argument applies. For it is obvious that the greater the
numbers the more aggravated will be the evils of this kind.
(4) The argument that immigration increases the amount of
pauperism and crime in the country has already been examined. As
far as the past is concerned it appears that pauperism has been
immensely increased through our foreign-born population, while the
amount of crime has not. But there has been a change in the
character of crime, in the direction of an increase in crimes against
the person relative to crimes against property. What the future will
bring forth, it is impossible to predict. It seems likely that the
tendency toward an excess of pauperism on the part of the foreign-
born will become greater as the average length of residence of the
newer immigrants increases. Here, again, the claim that it is not the
immigrant’s fault might be advanced, and the answer be made that
whether it is the fault of the immigrant, or of our industrial system,
or of the individual American, makes no difference in the facts as
they exist. It does make a difference, of course, as to where the
remedy must be applied.
(5) The extent to which the immigration movement of the present
is a stimulated one has already been indicated. It might seem at first
that it made no difference to the United States whether the
immigrant was induced to come, or whether he came of his own
volition. But a closer consideration shows that there is a fundamental
difference. A strictly natural immigration would mean that
immigrants came in response to some actual economic demand in
this country which was strong enough to make itself felt abroad.
They would also be the ones best fitted to meet that demand. But
when one of the greatest motives back of immigration is the desire of
the transportation companies to make money, the mere fact of
emigration is no indication of any real need for the immigrant in this
country, nor of his fitness to enter into its life.
(6) Owing to the very strict wording of our contract labor law, a
very large proportion of our immigrants enter the country under the
impression, either false or correct, that they are evading the law. This
has a very serious effect upon their character, and upon their attitude
toward American institutions. They may readily conceive that a
country that has such laws that it is necessary to break them to get in,
probably has other laws that need to be broken after one is in. The
whole system engenders a most dangerous attitude of indifference or
hostility to law.
(7) The biological argument of the restrictionist is the obverse of
the biological argument of the pro-immigrationist, and is equally
vague in the present state of our knowledge on the subject of race
mixing. Those who urge this argument against immigration are those
who believe that only when the mingled races are closely allied is the
resulting stock of a superior type, or else those who hold the extreme
view that no mixed race is as good as a pure race. At any event, they
believe that the racial elements which are now coming to the United
States are too diverse to produce anything but an inferior stock
through their interbreeding. In this connection it should be observed
that there are two possible results of this gathering of races in the
United States, each with its own problems. One is that these races
will, in the course of time, become so blended through intermarriage
as to produce one composite but homogeneous whole—the new
American people. The other is that race prejudice and the forces of
segregation will result in the growth of a large number of ethnic
groups within the nation, each with its own peculiarities, and each
distinct from the others. There are some indications which point to
the latter as the more probable outcome.[352]
(8) The charge that our immigrants are not completely
assimilated, or are not assimilated at all, is one of the most frequent
and gravest complaints made against our present immigration
situation. It is made to include—as, indeed, it rightfully does in a
sense—all the other arguments against immigration. The term
assimilation is almost unfailingly suggested by the mere mention of
immigration. But assimilation is a big word, and needs to be used
with great caution and understanding.
In its general application, assimilation is defined as the “act or
process of assimilating, or bringing to a resemblance, conformity, or
identity,”[353] or “the act or process of making or becoming like or
identical; the act or process of bringing into harmony”;[354] or again,
“the action of making or becoming like; the state of being like;
similarity, resemblance, likeness; ... the becoming conformed to;
conformity with.”[355] It is evident from these definitions that the
essence of assimilation is likeness or conformity; this of necessity
implies a type to which such likeness approaches. It appears that it
would not be incorrect to speak of assimilation when there is nothing
more than resemblance; it seems equally clear that complete
assimilation involves identity. This is particularly evident in
reference to the special application of the term, which is the one
generally in mind when it is used, viz. the assimilation of food in the
body. In this sense the process is described as “the reformation of
biogen molecules by those already existing, aided by food-stuffs.”[356]
It is this physiological analogy which underlies the term
assimilation when applied to population, and the whole matter may
be best understood by keeping that analogy in view. When nutriment
is taken into the system of a living organism, it passes through
certain processes by which it ultimately becomes an integral part of
the physical body of that organism. It is then said to be assimilated.
Every suggestion of separate origin disappears, each new constituent
entering harmoniously into relation with the others, new and old,
and fulfilling its own functions. While it is true that certain food
elements contribute particularly to certain portions of the organism,
yet the whole is a coördinated unit. Any portion of the food which
created disturbance with reference to the body would not be said to
be assimilated.
This is only an analogy, and analogies are dangerous if used as
arguments. But it may contain a helpful suggestion. Transferred to
the field of population, it means that true and complete assimilation
of the foreign elements in the United States involves such a complete
transformation and unification of the new constituents that all sense
of difference between the new and the old completely disappears.
The idea of a type, into conformity with which the new elements
must be brought, is here present also. In the case in point, this is
manifestly the “American type.” Just what this is, it might be difficult
to say. Some writers appear even to question its existence. But the
very idea of assimilation presupposes a type. In general terms, this
type in the United States is the “native American.”[357]
A foreigner, or the descendant of a foreigner, can be truly said to
be assimilated only when the natives around him are conscious of no
feeling of alienation on account of his origin, and when the
newcomer himself feels no degree of separateness, nor possesses
divergent interests or loyalties traceable to the source from which he
came. This is not inconsistent with the fact that certain elements
contribute more fully to specific characteristics of the body politic
than others. The political, religious, or artistic aspects of the national
life may, in fact, owe their character more to one element of the
population than to another. But if assimilation is complete, there can
be no disturbances or friction arising from differences of origin
among the members of the nation.
Perhaps the most efficient test of entire assimilation is that of free
intermarriage. If marriage might take place between any man and
woman in the country, without suggesting differences of race or
ethnic origin to either contracting party, or their families, it is a safe
evidence of complete assimilation. There may be objections on the
grounds of wealth, social station, or religion; there must be none
based on race.
This may seem like strong doctrine. It may, indeed, not be
necessary for the welfare of the country that assimilation should be
so thoroughgoing as this. It is possible that different racial groups
within the body politic do not constitute a menace. But if so, the fact
should be stated by saying that complete assimilation is not
necessary, rather than by saying that the absence of serious
difficulties or evils arising from a composite population is a proof of
complete assimilation.
It is disheartening to note the frequency with which even careful
writers on the subject accept trivial and superficial indications as
evidence of the assimilation of our foreign residents. The wearing of
American clothes, the laying of carpets on the floors, the
abandonment of sleeping in the kitchen and taking large numbers of
boarders, the use of better food, and most of all the knowledge of
English are taken as proofs of assimilation.
Not all of these improvements, to be sure, are in themselves trivial.
They may indicate a great advance in living conditions, and in so far
an approach to Americanization; but they are superficial as proofs of
assimilation. Particularly is this true of the knowledge of English,
upon which so much emphasis is laid, and which is often accepted as
an evidence of essential assimilation. Now the knowledge and use of
the English language is of the greatest importance, and is one of the
first steps—perhaps the most essential one—toward assimilation. But
it is not assimilation itself. Missionaries in China, Turkey, and other
foreign lands learn to speak the languages almost perfectly, and
sometimes their children speak the language of the country more
readily than they do English. But that is no proof that either the
missionaries or their children are assimilated into the nations in
which they reside. The outlook for foreign missions would indeed be
dark, were it so. The importance of the knowledge of English to our
foreign residents must not be underemphasized. The lack of it is an
almost insuperable bar to assimilation. But the two should not be
confused. Even people whose native tongue is English may need to
go through a process of assimilation before they become Americans.
The following incident may serve as an illustration of this point.
Two young men, one an American and the other an Englishman,
both teachers in a foreign city, were discussing the conditions in the
armies of their native lands. The Englishman remarked that in his
country the officers were chosen from the noble families, and that it
was a fine system, as it caused the men to look upon their superiors
with great respect. The American replied that in America officers
were chosen for bravery, ability, or distinguished conduct, and that
made the men respect them much more. “Oh, no,” said the Briton, “it
is impossible that such a system as that could result in as profound a
respect as exists in our army.” The point was argued for half an hour,
with naturally not the slightest alteration of opinion on either side. It
is probable that that young Englishman might have lived all the
remainder of his life in the United States, without actually getting the
American point of view. But until he did, in this respect as well as
others, he could not be said to be truly assimilated, although he
might have been a very useful citizen.[358]
Regarding the matter of assimilation from the American point of
view, there are two questions to be asked. First, are our immigrants
being thoroughly assimilated? Second, is complete assimilation
necessary or desirable? As to the first of these queries, it seems that
there can be but one answer, as far as the immigrants themselves—
those of the first generation—are concerned. We have seen in how
large a proportion of this class the first step, the mastery of the
English language, has not been taken. In the various other conditions
of life, which we have studied, it is apparent that a large part of the
foreign-born are very far from American standards. With length of
residence, an approach to Americanization is made. Yet it is very
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade

Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.

Let us accompany you on the journey of exploring knowledge and


personal growth!

textbookfull.com

You might also like