{"id":20755229,"url":"https://github.com/formix/btb","last_synced_at":"2026-04-20T17:33:31.889Z","repository":{"id":36867725,"uuid":"41174696","full_name":"formix/btb","owner":"formix","description":null,"archived":false,"fork":false,"pushed_at":"2015-09-01T11:42:25.000Z","size":356,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T15:43:31.165Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/formix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-21T19:52:01.000Z","updated_at":"2015-08-21T19:52:53.000Z","dependencies_parsed_at":"2022-09-01T03:20:44.615Z","dependency_job_id":null,"html_url":"https://github.com/formix/btb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/formix/btb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formix%2Fbtb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formix%2Fbtb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formix%2Fbtb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formix%2Fbtb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/formix","download_url":"https://codeload.github.com/formix/btb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formix%2Fbtb/sbom","scorecard":{"id":407211,"data":{"date":"2025-08-11","repo":{"name":"github.com/formix/btb","commit":"866ae1332173b4496fc7e25ff19e9c3ea7b5fe1f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENCE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENCE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T21:38:49.477Z","repository_id":36867725,"created_at":"2025-08-18T21:38:49.478Z","updated_at":"2025-08-18T21:38:49.478Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32057678,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T09:24:05.436Z","updated_at":"2026-04-20T17:33:31.867Z","avatar_url":"https://github.com/formix.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Bridge to Babylon\n\nBridge to Babylon is a lightweight object relational mapper. The\nmain goal of this library is simplicity. It is intended to be\nused with POJOs without the need of external XML mapping\ndefinition or any kind of annotation. This approache makes\nBridge to Babylon the best compromize between simplicity (no xml\nmapping) and light library footprint: You don't use annotations\nso you don't have to deploy Bridge to Babylon along your\nentities' jar on remote clients.\n\n**Moved from [SourceForge](https://sourceforge.net/projects/btb/)**\n\n[Maven Autogenerated Site](https://formix.github.io/btb)\n\n[Api Documentation](http://formix.github.io/btb/apidocs)\n\n##Installation\nAs a maven dependency:\n```xml\n\u003cdependencies\u003e\n  \u003cdependency\u003e\n\t  \u003cgroupId\u003eorg.formix\u003c/groupId\u003e\n\t  \u003cartifactId\u003ebtb\u003c/artifactId\u003e\n\t  \u003cversion\u003e1.3.2\u003c/version\u003e\n  \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\n##Create Your Database\nWhen creating your database, you have to follow these simple naming rules for your table and column names:\n\n1. The primary key name must be \"id\".\n2. Use pascal case for table names.\n3. Use camel case for column names.\n\nTable Example (Derby syntax):\n\n```sql\nCREATE TABLE Employee (\n  id           INT         NOT NULL GENERATED ALWAYS AS IDENTITY,\n  firstName    VARCHAR(50) NULL,\n  lastName     VARCHAR(50) NULL,\n  wages        DOUBLE      NOT NULL,\n    PRIMARY KEY(id)\n);\n```\n\n##Create Your Plain Old Java Object (POJO)\n\nPOJO Corresponding to the Employee table:\n\n```java\npublic class Employee {\n\n    private int     id;\n    private String  firstName;\n    private String  lastName;\n    private double  wages;\n\n    public Employee() {\n        this.id        = -1;\n        this.firstName = \"\";\n        this.lastName  = \"\";\n        this.wages     = 0;\n    }\n\n    protected void setId(int id) {\n        this.id = id;\n    }\n\n    public int getId() {\n        return id;\n    }\n\n    public void setFirstName(String firstName) {\n        this.name = name;\n    }\n\n    public String getFirstName() {\n        return name;\n    }\n\n    public void setLastName(String lastName) {\n        this.lastName = lastName;\n    }\n\n    public String getLastName() {\n        return lastName;\n    }\n\n    public void setWages(double wages) {\n        this.wages = wages;\n    }\n\n    public double getWages() {\n        return wages;\n    }\n}\n```\n\nSo what do we have to say now? In fact, your are in right to ask yourself how\ndoes Bridge to Babylon handles auto incremented primary keys. First of all, \nyou must now that protected and private methods of your object's properties \ncan be accessed by Bridge to Babylon. Secondly, BTB automatically fetch back \nfrom your database any read-only columns that your table may have upon insert \nand update operations.\n\nIn this particular case, you don't want the end user of the POJO to be able \nto directly change the \"id\" property because it's the database responsibility \nto do so. But BTB still need to access it through a method during a select or \na fetch back operation. That's why the \"setId\" method have to be protected \n(or private).\n\n##Get Connected to Your Database\n\nBridge to Babylon offers a class named ConnectionManager to help you handle \nany database connection you may need. By default, when you create an \ninstance of this class, it looks for a file named \"bridge.xml\" in the \napplication root folder. You can change this path by adding the command \nline argument \"-Dbridge.properties.path=path to your property file\" when \nlaunching your application.\n\nExample of a minimal \"bridge.properties\" content:\n```properties\ndatabase.url=jdbc:derby:data/testdb;create=true\n```\n\nAs you can see, a ConnectionManager needs only one key to be functional. \nWith this file in your application folder, any time you creates a Bridge \nyou will be connected to a Derby database in the \"data\" folder, under \nyour application directory. It is possible to handle more database \nconnections with a ConnectionManager. For more information on how to \nhandle multiple connections, please read the corresponding Javadoc.\n\n##Use Bridge to Babylon\n\nNow it's time to get to the real thing. Do I have to tell you to create \nyour database and bridge.xml file prior executing the following snippet?\n\nIn any case, this is a simple insertion example:\n\n```java\nEmployee e = new Employee();\ne.setId(123);\ne.setFirstName(\"John\");\ne.setLastName(\"Doe\");\ne.setWages(16.45);\n\nBridge\u003cEmployee\u003e bridge = new Bridge\u003cEmployee\u003e(Employee.class);\nbridge.insert(e);\n```\n\nNow a simple query example returning all elements from a table:\n\n```java\nBridge\u003cEmployee\u003e bridge = new Bridge\u003cEmployee\u003e(Employee.class);\nQuery\u003cEmployee\u003e query = bridge.newQuery();\nList\u003cEmployee\u003e list = query.execute();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fformix%2Fbtb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fformix%2Fbtb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fformix%2Fbtb/lists"}