Coder Social home page Coder Social logo

bean-manager's Introduction

Description

The BeanManager is a framework that helps to deal with Object Relational Mapping problem. The major features are outlined below:

Features

  • Small footprint about 72KB
  • No external dependencies
  • JDK 1.5/6 compliant
  • JDBC compliant
  • Based on JavaBean specification, mapping is expressed as BeanInfo]
  • Support of both mutable metadata and dynamic bean - (configurability/extensibility features)
  • support of meta-data inheritance and aggregation
  • support of SQL92 specification
  • support of simple query language
  • support of aggregation (i.e. a single bean mapped on more than one table)
  • Custom adapter to customize Java to DB representation and vice-versa
  • OSGI enabled - EQUINOX compliant

News

17 Aug, 2011 IMPORTANT! - from release 1.4.1 the groupId has been relocated from org.bsc.framework to org.bsc.bean
17 Aug, 2011 request to publish beanManager to SONATYPE MAVEN CENTRAL REPO approved Issue 32
07 May, 2010 Release 1.4 will support a subset of JPA annotations

Releases

20 Aug, 2011 Release 1.4.1 is out Available from MAVEN CENTRAL REPO
  • Issue 30 - fix java.util.Date support
  • Issue 31 - javac processor to generate SQL Schema during project building
  • Issue 32 - publish to the central
6 jun, 2010 Release 1.4-beta2 is out. Available from JAVA.NET REPOSITORY
  • Issue 21 - deploy on java.net repository
  • Issue 20 - complete support for JPA Entity Inheritance
26 May, 2010 Release 1.4-beta1 is out. Available from maven
07 May, 2010 Release 1.3.1. Available from maven
24 July, 2009 Release 1.3. Available from maven

Old Releases

Release 1.2 General fix and enhancements (add features for DdlUtils integration) - available from maven
Release 1.1 General fix and enhancements (e.g. CLOBAdapter) - available from maven
Release 1.0 available from maven
Release Candidate 1 available from maven

bean-manager's People

Contributors

bsorrentino avatar

Watchers

 avatar  avatar

bean-manager's Issues

Add a transactionUtils class

Add a utility class to facilitate use of transaction

es.:

TransactionUtils.exec( connection, new TransactionExecutor() {

     public void exec( Connection c ) throws SQLException {

                // perfrom something without taking care of open,close, commit, rollback
     }

});

Original issue reported on code.google.com by [email protected] on 20 Jun 2009 at 6:12

add beanmanager custom annotation to support DataAdapter concept

Idea is to add adapter both at class level and property/attribute level

Example:

@Entity
@DataAdapter( type=Boolean.class, 
class="org.bsc.framework.adapters.CharBoolean")
class MyBean {


@DataAdapter(class="TrimAdapter")
private String value;

@DataAdapter(class="NumberStringAdapter")
public int getNumber() {}

}

Original issue reported on code.google.com by [email protected] on 16 Jun 2010 at 6:51

publish to PUBLIC MAVEN REPO

Send request to SONATYPE to have permission to publish beanManager to PUBLIC 
MAVEN REPO

[https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usag
e+Guide]

Original issue reported on code.google.com by [email protected] on 16 Aug 2011 at 1:44

Provide a way to set beanmanager extensions on top of JPA

In order to avoid to provide custom annotations (we want keep only standard JPA 
annotation), idea is to provide a customizer interface on the BeanManager 
creation

JPABeanManagerFactory.createBeanManager(MyBean.class, new Customizer() {

      public PropertyDescriptorField process( PropertyDescriptorField pd ) {
            // process
            return pd;
      }
});

Original issue reported on code.google.com by [email protected] on 16 Jun 2010 at 11:23

add support for create of multiple bean


change BeanManager interface to support create 

from 

public int create( Connection conn, Object bean ) throws SQLException;

to

public int create( Connection conn, Object... bean ) throws SQLException;


Original issue reported on code.google.com by [email protected] on 3 Apr 2008 at 4:12

[ERROR]symbol : method aggregateProperties

I had build all my code but I recive the follow error:
[ERROR]symbol  : method aggregateProperties
(java.lang.Class<it.softphone.sipvr.extgwt.client.services.RecFileBean>,jav
a.beans.PropertyDescriptor[],java.beans.BeanInfo[])
[ERROR]location: class org.bsc.bean.BeanManagerUtils

My be, I can not download the latest version of BeanManager.

Thanks in advance

Original issue reported on code.google.com by [email protected] on 1 Apr 2009 at 6:06

CharBooleanAdapter failure

method 
public Object getValue(ResultSet resultSet, PropertyDescriptorField
PropertyDescriptorField) throws SQLException ;

of CharBooleanAdapter return always true; 

Original issue reported on code.google.com by [email protected] on 4 Apr 2008 at 4:04

Missing artifact

What steps will reproduce the problem?
1.Declare the depency and compile
2.
3.

What is the expected output? What do you see instead?

Maven can't find the following artifact:

org.eclipse.osgi:org.eclipse.osgi:jar:3.2.0-v20060601

What version of the product are you using? On what operating system?

I have used the following artifacts:

<groupId>org.bsc.framework</groupId>
<artifactId>beanmanager-jpa</artifactId>
<version>1.4</version>

<groupId>org.bsc.framework</groupId>
<artifactId>beanmanager-core</artifactId>
<version>1.4</version>




Please provide any additional information below.

The stacktrace of the error:

Missing:
----------
1) org.eclipse.osgi:org.eclipse.osgi:jar:3.2.0-v20060601

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.eclipse.osgi -DartifactId=org.eclipse.osgi -Dversion=3.2.0-v20060601 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=org.eclipse.osgi -DartifactId=org.eclipse.osgi -Dversion=3.2.0-v20060601 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) it.soulsoftware:amplifon-gwt:war:1.1-SNAPSHOT
        2) it.soulsoftware:amplifon-services:jar:1.1-SNAPSHOT
        3) org.bsc.framework:beanmanager-core:jar:1.4
        4) org.eclipse.osgi:org.eclipse.osgi:jar:3.2.0-v20060601

----------
1 required artifact is missing.

for artifact:
  it.soulsoftware:amplifon-gwt:war:1.1-SNAPSHOT

from the specified remote repositories:
  gwtupload (http://gwtupload.googlecode.com/svn/mavenrepo/),
  central (http://repo1.maven.org/maven2),
  java.net (http://download.java.net/maven/2/),
  google-bean-manager (http://bean-manager.googlecode.com/svn/trunk/mavenrepo),
  apache-repo-snapshots (https://repository.apache.org/content/repositories/snapshots/),
  apache-repo (https://repository.apache.org) 


As workaround, i have excluded the artifact from the dependency :

<exclusions>
     <exclusion>
    <artifactId>org.eclipse.osgi</artifactId>
    <groupId>org.eclipse.osgi</groupId>
     </exclusion>
</exclusions> 


Original issue reported on code.google.com by [email protected] on 6 Oct 2011 at 8:51

JPA: add support also for java.util.Date

Actually if use JPA extension and set a property as java.uil.Date the 
BeanManager treat it as BLOB

workaround is to use java.sql.Date (not acceptable for GWT-RPC protocol)

Original issue reported on code.google.com by [email protected] on 4 Nov 2010 at 11:42

introduction of CGLIB

Integrate cglib http://cglib.sourceforge.net to improve reflection usage

moreover 

evaluate the possibility to enhance class (JPA concern)

Original issue reported on code.google.com by [email protected] on 2 Sep 2010 at 4:54

add possibility to register a gobal data adapter

idea is to provide the following methods:

BeanManagerUtils.registerAdapter( Class<?> type, DataAdapter adapter )
BeanManagerUtils.unregisterAdapter( Class<?> type )

Es.:

        CharBooleanAdapter adapter = new CharBooleanAdapter();

        BeanManagerUtils.registerAdapter( Boolean.TYPE, adapter);
        BeanManagerUtils.registerAdapter( Boolean.class, adapter);

Original issue reported on code.google.com by [email protected] on 16 Jun 2010 at 6:06

add support for create of multiple bean


change BeanManager interface to support create 

from 

public int create( Connection conn, Object bean ) throws SQLException;

to

public int create( Connection conn, Object... bean ) throws SQLException;


Original issue reported on code.google.com by [email protected] on 3 Apr 2008 at 4:16

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.