jodd-joy/src/main/java/jodd/joy/JoyDb.java
public void printEntities(final int width) {
		if (!databaseEnabled) {
			return;
		}

		final List<DbEntityDescriptor> list = new ArrayList<>();
		dbOom.entityManager().forEachEntity(list::add);

		if (list.isEmpty()) {
			return;
		}

		final Print print = new Print();
		print.line("Entities", width);

		list.stream()
			.sorted(Comparator.comparing(DbEntityDescriptor::getEntityName))
			.forEach(ded -> print.outLeftRightNewLine(
				Chalk256.chalk().yellow(), ded.getTableName(),
				Chalk256.chalk().blue(),   ClassUtil.getShortClassName(ded.getType(), 2),
				width));

		print.line(width);
	}
public void printEntities(final int width) {
		if (!databaseEnabled) {
			return;
		}

		final List<DbEntityDescriptor> list = new ArrayList<>();
		dbOom.entityManager().forEachEntity(list::add);

		if (list.isEmpty()) {
			return;
		}

		final Print print = new Print();
		print.line("Entities", width);

		list.stream()
			.sorted(Comparator.comparing(DbEntityDescriptor::getEntityName))
			.forEach(ded -> print.outLeftRightNewLine(
				Chalk256.chalk().yellow(), ded.getTableName(),
				Chalk256.chalk().blue(),   ClassUtil.getShortClassName(ded.getType(), 2),
				width));

		print.line(width);
	}
public void printEntities ( final int width ) { if ( ! databaseEnabled ) { return ; } final List < DbEntityDescriptor > list = new ArrayList <> ( ) ; dbOom . entityManager ( ) . forEachEntity ( list :: add ) ; if ( list . isEmpty ( ) ) { return ; } final Print print = new Print ( ) ; print . line ( "Entities" , width ) ; list . stream ( ) . sorted ( Comparator . comparing ( DbEntityDescriptor :: getEntityName ) ) . forEach ( ded -> print . outLeftRightNewLine ( Chalk256 . chalk ( ) . yellow ( ) , ded . getTableName ( ) , Chalk256 . chalk ( ) . blue ( ) , ClassUtil . getShortClassName ( ded . getType ( ) , 2 ) , width ) ) ; print . line ( width ) ; }
---------------------------------------------------------------- print
---------------------------------------------------------------- print